好久没有更新博客了,实在是太忙(其实也很懒)
最近百度做了一件事,就是抵制其它搜索引擎,现象就是当我用google等其它搜索引擎搜索时,如果搜出来的结果指向百度文库、百度知道等等百度旗下一系列产品,都会无一例外的被重定向到百度搜索首页,,出现“点击这里继续访问您选择的百度。。。” 。如下图:
实在是无聊透顶~好在我用chrome浏览器,好在我会写greasemonkey的脚本,让他们大战去,我自个儿玩自个儿的~
// ==UserScript==
// @name 百度搜索跳转 // @namespace cancelpj.cnblogs.com // @version 1.0 // @description 当访问百度产品页时,默认被重定向到百度搜索首页,此脚本用来抵制重定向。 // @match http://www.baidu.com/* // @copyright 2012+, 碟仙 // ==/UserScript== ( function(){ var debug = 0; var path = document.getElementById('warning_url'); if ( debug > 0 ) { alert( path.toString().length+' '+path); }; if ( path.toString().length > 0) path.click(); })();管好我的一亩三分地~
转载于:https://www.cnblogs.com/cancelpj/archive/2012/09/12/2681632.html
