您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
On any web page it will check if the clicked links goes to db.vanillagaming.org. It will then redirect to a working vanilla gaming database site.
// ==UserScript== // @name Redirect db.vanillagaming.org links to db.excalibur.la // @namespace uso2usom // @description On any web page it will check if the clicked links goes to db.vanillagaming.org. It will then redirect to a working vanilla gaming database site. // @include http://*.* // @include https://*.* // @version 1.0 // @grant none // ==/UserScript== for(var i = 0; i < document.links.length; i++) { //Some sites use redirect links for security reasons which can screw up the script function. This line will remove that feature. document.links[i].removeAttribute("data-safe-url"); document.links[i].href = document.links[i].href.replace(/http:\/\/db.vanillagaming.org/i,"http://db.excalibur.la"); document.links[i].title = document.links[i].title.replace(/http:\/\/db.vanillagaming.org/i,"http://db.excalibur.la"); }