(搬运)免费无限制使用magai.co,支持gpt-4o等各大模型
文心小助手2024-07-23 21:000
准备工作:需要安装ViolentMonkey之类的用户脚本插件(就是篡改猴)。
步骤如下:
注册 Magai.co 用临时邮箱和假名就行,或者直接谷歌注册登陆。
把这个脚本加到你的浏览器插件里:
- // ==UserScript==
- // [url=home.php?mod=space&uid=5839]@name[/url] Magai.co 去模糊、移除元素和启用输入
- // [url=home.php?mod=space&uid=73703]@version[/url] 1.2
- // @description 移除Magai.co上的模糊效果,隐藏特定元素,并启用文本输入
- // @author Mahjongmaster88
- // @match https://app.magai.co/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- function removeElements() {
- const selectors = [
- '.column.flex.bubble-r-container.baTwaZp1.Group.bubble-element',
- '.baTydaY.greyout',
- '.baTwaQaG.greyout',
- '.column.flex.bubble-r-container.baTwaQaG.CustomElement.bubble-element > .column.flex.bubble-r-container.baTwcaY.CustomElement.bubble-element',
- '.column.flex.bubble-r-container.baTydaY.CustomElement.bubble-element > .column.flex.bubble-r-container.baTwcaY.CustomElement.bubble-element',
- '.column.flex.bubble-r-container.baTydaY.CustomElement.bubble-element',
- '.column.flex.bubble-r-container.baTwaQaG.CustomElement.bubble-element'
- ];
- selectors.forEach(selector => {
- const elements = document.querySelectorAll(selector);
- elements.forEach(element => {
- element.style.display = 'none';
- });
- });
- }
- // 移除模糊效果相关代码
- const observer = new MutationObserver(mutations => {
- mutations.forEach(mutation => {
- if (mutation.type === 'attributes' && mutation.attributeName === 'style') {
- const element = mutation.target;
- if (element.style.filter.includes('blur')) {
- console.log('移除模糊效果:', element);
- element.style.filter = 'none';
- }
- }
- });
- });
- const removeBlurEffect = () => {
- document.querySelectorAll('*').forEach(element => {
- const style = window.getComputedStyle(element);
- if (style.filter.includes('blur')) {
- element.style.filter = 'none';
- }
- observer.observe(element, { attributes: true });
- });
- console.log('MutationObserver已启动。');
- };
- removeBlurEffect();
- const bodyObserver = new MutationObserver(mutations => {
- mutations.forEach(mutation => {
- if (mutation.type === 'childList') {
- mutation.addedNodes.forEach(node => {
- if (node.nodeType === 1) { // ELEMENT_NODE
- const style = window.getComputedStyle(node);
- if (style.filter.includes('blur')) {
- node.style.filter = 'none';
- }
- observer.observe(node, { attributes: true });
- }
- });
- }
- });
- // 每当添加新元素时执行removeElements函数
- removeElements();
- // 每当添加新元素时执行enableTextInput函数
- enableTextInput();
- });
- bodyObserver.observe(document.body, { childList: true, subtree: true });
- // 启用文本输入功能
- function enableTextInput() {
- const textarea = document.querySelector('textarea#prompt');
- if (textarea && textarea.disabled) {
- textarea.disabled = false;
- console.log('文本输入已启用。');
- }
- }
- // 初始执行
- removeElements();
- enableTextInput();
- })();
添加完保存一下然后启动回到magai页面刷新一下就好,亲测可用!
最新回复 (4)
- 卡尔4月前引用2楼能不能生成图片
- 文心小助手楼主4月前引用3楼能不能生成图片 可以的
- oneLN4月前引用4楼
哎呀呀。搞好了。但是呢。不能生图。 - oneLN4月前引用5楼
- // ==UserScript==
- // [url=home.php?mod=space&uid=5839]@name[/url] New Userscript
- // @namespace http://tampermonkey.net/
- // @version 2024-07-23
- // @description 移除Magai.co上的模糊效果,隐藏特定元素,并启用文本输入
- // @author Mahjongmaster88
- // @match https://app.magai.co/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- function removeElements() {
- const selectors = [
- '.column.flex.bubble-r-container.baTwaZp1.Group.bubble-element',
- '.baTydaY.greyout',
- '.baTwaQaG.greyout',
- '.column.flex.bubble-r-container.baTwaQaG.CustomElement.bubble-element > .column.flex.bubble-r-container.baTwcaY.CustomElement.bubble-element',
- '.column.flex.bubble-r-container.baTydaY.CustomElement.bubble-element > .column.flex.bubble-r-container.baTwcaY.CustomElement.bubble-element',
- '.column.flex.bubble-r-container.baTydaY.CustomElement.bubble-element',
- '.column.flex.bubble-r-container.baTwaQaG.CustomElement.bubble-element'
- ];
- selectors.forEach(selector => {
- const elements = document.querySelectorAll(selector);
- elements.forEach(element => {
- element.style.display = 'none';
- });
- });
- }
- // 移除模糊效果相关代码
- const observer = new MutationObserver(mutations => {
- mutations.forEach(mutation => {
- if (mutation.type === 'attributes' && mutation.attributeName === 'style') {
- const element = mutation.target;
- if (element.style.filter.includes('blur')) {
- console.log('移除模糊效果:', element);
- element.style.filter = 'none';
- }
- }
- });
- });
- const removeBlurEffect = () => {
- document.querySelectorAll('*').forEach(element => {
- const style = window.getComputedStyle(element);
- if (style.filter.includes('blur')) {
- element.style.filter = 'none';
- }
- observer.observe(element, { attributes: true });
- });
- console.log('MutationObserver已启动。');
- };
- removeBlurEffect();
- const bodyObserver = new MutationObserver(mutations => {
- mutations.forEach(mutation => {
- if (mutation.type === 'childList') {
- mutation.addedNodes.forEach(node => {
- if (node.nodeType === 1) { // ELEMENT_NODE
- const style = window.getComputedStyle(node);
- if (style.filter.includes('blur')) {
- node.style.filter = 'none';
- }
- observer.observe(node, { attributes: true });
- }
- });
- }
- });
- // 每当添加新元素时执行removeElements函数
- removeElements();
- // 每当添加新元素时执行enableTextInput函数
- enableTextInput();
- });
- bodyObserver.observe(document.body, { childList: true, subtree: true });
- // 启用文本输入功能
- function enableTextInput() {
- const textarea = document.querySelector('textarea#prompt');
- if (textarea && textarea.disabled) {
- textarea.disabled = false;
- console.log('文本输入已启用。');
- }
- }
- // 初始执行
- removeElements();
- enableTextInput();
- })();
上面那个前三排报错。我这直接用自带的替换了名字之类的 - // ==UserScript==
- 回复请 登录 or 快速注册
文心小助手
主题数 56 | 帖子数 2871 | 注册排名 2 |