您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes the list of Google Search’s supported domains available as the global variable “window.SUPPORTED_DOMAINS”.
当前为
// ==UserScript== // @name Google Search’s Supported Domains // @description Makes the list of Google Search’s supported domains available as the global variable “window.SUPPORTED_DOMAINS”. // @icon https://wsrv.nl/?url=https://www.google.com/images/branding/googleg/1x/googleg_standard_color_128dp.png // @author Jason Kwok // @namespace https://jasonhk.dev/ // @version 1.0.0 // @license MIT // @match https://www.google.com/supported_domains // @run-at document-end // @inject-into page // @grant none // ==/UserScript== const SUPPORTED_DOMAINS = document.body.textContent.trim().split("\n"); if (GM.info.scriptHandler === "Greasemonkey") { cloneInto(SUPPORTED_DOMAINS, window); } else { window.SUPPORTED_DOMAINS = SUPPORTED_DOMAINS; }