chrome浏览器显示“域名重定向”。更改脚本匹配网址的方式:
// ==UserScript==
// @name Remove Google Results Redirect
// @namespace Smiths
// @description 9 lines of code to remove all link redirection on Google Search Results. Prevents tracking and helps load times!
// @include /^https?://www\.google(?:\.\w+)+/(?:search|webhp)/
// @grant unsafeWindow
// @version 2.0
// ==/UserScript==
if (unsafeWindow.top == unsafeWindow.self) {
document.addEventListener('DOMNodeInserted', function (e) {
window.setTimeout(function () {
var rl = document.querySelectorAll('a[onmousedown*="return rwt"]');
for (var l = 0; l < rl.length; l++)
rl[l].removeAttribute('onmousedown');
}, 250);
}, false);
}

本文介绍了一个用户脚本,用于在Chrome浏览器中更改匹配Google搜索结果网址的脚本,旨在去除所有链接重定向,提高加载速度并防止跟踪。
187

被折叠的 条评论
为什么被折叠?



