删除谷歌搜索结果中的跟踪脚本
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了删除谷歌搜索结果中的跟踪脚本相关的知识,希望对你有一定的参考价值。
A recent update to either Google's search results page or Firefox's Tab Mix Plus add-on has prevented a locked tab from opening links in a new tab. This Greasemonkey script removes the tracking code on the Google links that causes the problem. I don't understand what the incompatibility is though, since the tracking script just changes the href attribute at the last minute.Based on a script at [http://www.searchlores.org/ritz\_google\_anti\_snoop.htm](http://www.searchlores.org/ritz_google_anti_snoop.htm).
// ==UserScript== // @name Remove Google Tracking Script // @namespace http://dragonzreef.com/ // @description Removes tracking script in Google search result links // @include http://www.google.com/search* // @include https://www.google.com/search* // ==/UserScript== var rxp = /^.*?{s*return true;s*}$/; function overwriteRwt() { if(rxp.test(unsafeWindow.rwt)) setTimeout(overwriteRwt, 100); else unsafeWindow.rwt = function(){ return true; }; } overwriteRwt();
以上是关于删除谷歌搜索结果中的跟踪脚本的主要内容,如果未能解决你的问题,请参考以下文章
当我在本地主机中删除谷歌分析时,如何忽略整个网站的 ga() 事件跟踪代码?
谷歌浏览器调试jsp 引入代码片段,如何调试代码片段中的js
如何创建跟踪 JavaScript 代码,如基于 Javascript 的谷歌分析?