问题
点击google搜索结果后,不是直接访问目标链接,而是要跳转到Google服务器,以便Google分析和挖掘有用的信息。但是对于用户来说,体验糟糕之极。本来翻墙上Google就慢了,好不容易搜索出结果,又要再跳转一次,简直会疯掉。
解决方案
采用浏览器脚本屏蔽这一行为,安装相关扩展就可以,chrome浏览器我用的tampermonkey,firefox我用的Greasemonkey。脚本如下:
// ==UserScript==
// @name Don't track me Google
// @namespace Rob W
// @version 2.0
// @match https://encrypted.google.com/*
// @match http://www.google.com/*
// @match https://www.google.com/*
// @match http://www.google.ad/*
// @match https://www.google.cat/*
// ==/UserScript==
// http://webapps.stackexchange.com/questions/22291/turning-off-google-search-results-indirection
// Injection through `javascript:...` because there's no other way to modify a window variable in Chrome
// http://code.google.com/chrome/extensions/content_scripts.html#execution-environment
location.href = "javascript:void(function(){" +
" Object.defineProperty(window, 'rwt', { " +
" value: function(a) { return a; }, " +
" writable: false, " +
" configurable: false, " +
" enumerable: false " +
" }); " +
"})(); ";
网友评论