您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove redirects across the web speeding up performance
// ==UserScript== // @name Redirect away // @include http* // @locale en // @version 0.20 // @description Remove redirects across the web speeding up performance // @author Danny J Kendall (MANICX100) // @grant none // @namespace https://greasyfork.org/users/169145 // ==/UserScript== (function() { var k, x, t, i, j, p; for (k = 0; x = document.links[k]; k++) { t = x.href.replace(/[%]3A/ig, ':').replace(/[%]2f/ig, '/'); i = t.lastIndexOf('http'); if (i > 0) { t = t.substring(i); j = t.indexOf('&'); if (j > 0) t = t.substring(0, j); p = /https?\:\/\/[^\s]*[^.,;'">\s\)\]]/.exec(unescape(t)); if (p) x.href = p[0]; } else if (x.onmouseover && x.onmouseout) { x.onmouseover(); if (window.status && window.status.indexOf('://') != -1) x.href = window.status; x.onmouseout(); } x.onmouseover = null; x.onmouseout = null; } })();