As we all know, Baidu does not allow other search engines to directly access all of its sites. After a lot of clicks, it writes this automatic jump script.
It turns out that not only the search engine, but also the links of other websites have been done, nnd, cursing Baidu.
Usage: Use the xxxmonkey plug-in to create a script. copy and paste the script and save it.
// = UserScript ==/@ name autoRedirectForBaidu // @ namespace http://jinzhao.cnblogs.com/// @ version 0.1 // @ description auto redirect of baidu // @ match http://www.baidu.com/search/ressafe.html#// @ copyright 2013 +, jinzhao // =/UserScript = function request (paras) {var url = location. href; var paraString = url. substring (url. indexOf ("? ") + 1, url. length ). split ("&"); var paraObj = {} for (I = 0; j = paraString [I]; I ++) {paraObj [j. substring (0, j. indexOf ("= ")). toLowerCase ()] = j. substring (j. indexOf ("=") + 1, j. length);} var returnValue = paraObj [paras. toLowerCase ()]; if (typeof (returnValue) = "undefined") {return ";} else {return returnValue ;}} // The following is the application code var theurl = request ("url"); if (theurl! = '') {Window. location. href = theurl}
Http://baike.baidu.com/view/39377.htm