您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Switch Wowdb links with Wowhead links on Icy Veins
// ==UserScript== // @name Icy Veins Wowdb -> Wowhead // @namespace https://www.icy-veins.com/ // @version 1.02 // @description Switch Wowdb links with Wowhead links on Icy Veins // @author MuTLY // @match https://www.icy-veins.com/* // @grant none // ==/UserScript== (function() { 'use strict'; var links, thisLink; links = document.evaluate("//a[@href]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); for (var i=0;i<links.snapshotLength;i++) { thisLink = links.snapshotItem(i); thisLink.href = thisLink.href.replace('https://www.wowdb.com/items/', 'https://www.wowhead.com/item='); thisLink.href = thisLink.href.replace('https://www.wowdb.com/quests/', 'https://www.wowhead.com/quest='); } })();