您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Auto forward any attempts to visit a fandom wiki site to the gg variant, if it exists
// ==UserScript== // @name Redirect Fandom to GG wiki // @namespace http://tampermonkey.net/ // @version 1.1 // @description Auto forward any attempts to visit a fandom wiki site to the gg variant, if it exists // @author /u/delfofthebla/ // @match https://*.fandom.com/wiki* // @icon https://www.google.com/s2/favicons?domain=fandom.com // @require https://cdn.jsdelivr.net/npm/[email protected]/dist/ping.min.js // @run-at document-start // @license MIT // ==/UserScript== var currentURL = window.document.location.toString(); if (currentURL.includes("fandom.com")) { var p = new Ping(); var newURL = currentURL.replace("fandom.com", "wiki.gg"); var pathArray = newURL.split( '/' ); var protocol = pathArray[0]; var host = pathArray[2]; var baseUrlTarget = protocol + '//' + host; p.ping(baseUrlTarget) .then(data => { window.document.location.replace(newURL); }) .catch(data => { console.error("No Fandom alternative found: " + data); }) }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址