在点击google搜索结果时,google会在结果的URL前做个跳转,且有时这个跳转地址会被墙,这样极大的影响对搜索引擎的使用体验。

本方法只针对google chrome浏览器,解决方法很简单,因为chrome已经原生支持Greasemonkey脚本,所以只需要写下面一段脚本,然后导chrome既可:

 

var url = window.location.href.toLowerCase();
if (url.indexOf("www.google.com.hk") >= 0 || url.indexOf("/search") >= 0)
{
    var all = document.querySelectorAll("*");
    for (var i = 0; i < all.length; i ++)
    {
        all[i].onmousedown=null;
    }
}

posted on 2011-11-14 14:14  ideas  阅读(1356)  评论(0编辑  收藏  举报