// ==UserScript== // @name 轻量级聚合搜索-精美侧边栏版 (Gemini修改版) // @name:zh-CN 轻量级聚合搜索-精美侧边栏版 (Gemini修改版) // @description:zh-tw 轻量级聚合搜索-精美侧边栏版 (Gemini修改版) // @namespace http://bbs.91wc.net/aggregate-search.htm // @version 12.8.0 // @description 搜索引擎切换,增加临时关闭、域名黑白名单、一键添加域名功能。修复布局问题,增加文字头像兜底。 // @description:en Switch search engine, with temporary close, domain whitelist/blacklist, and one-click add domain features. // @author Wilson & Modified by Gemini // @require https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js // @match *://*/* // @exclude *://www.google.com/recaptcha/* // @exclude *://gmail.com/* // @exclude *://mail.*.com/* // @exclude *://mail.163.com/* // @grant GM_setValue // @grant GM_getValue // @grant GM_xmlhttpRequest // @grant GM_openInTab // @license GPL License // @downloadURL https://update.greasyfork.icu/scripts/561164/%E8%BD%BB%E9%87%8F%E7%BA%A7%E8%81%9A%E5%90%88%E6%90%9C%E7%B4%A2-%E7%B2%BE%E7%BE%8E%E4%BE%A7%E8%BE%B9%E6%A0%8F%E7%89%88%20%28Gemini%E4%BF%AE%E6%94%B9%E7%89%88%29.user.js // @updateURL https://update.greasyfork.icu/scripts/561164/%E8%BD%BB%E9%87%8F%E7%BA%A7%E8%81%9A%E5%90%88%E6%90%9C%E7%B4%A2-%E7%B2%BE%E7%BE%8E%E4%BE%A7%E8%BE%B9%E6%A0%8F%E7%89%88%20%28Gemini%E4%BF%AE%E6%94%B9%E7%89%88%29.meta.js // ==/UserScript== (function($) { 'use strict'; try { if (window.top !== window.self) return; } catch (e) { return; } // --- 脚本运行前置检查 --- var scriptEnabled = GM_getValue("wish_script_enabled", true); var domainMode = GM_getValue("wish_domain_mode", "blacklist"); // 可选: blacklist, whitelist, disabled var domainListText = GM_getValue("wish_domain_list", "gmail.com\nmail.google.com\nmail.163.com"); var domainList = domainListText.split('\n').map(d => d.trim()).filter(Boolean); var currentHost = window.location.hostname; if (!scriptEnabled) { $('body').append(`
每行一条记录,使用分隔符隔开名称和URL。新项目将添加至列表末尾。