Google Cache Over GFW

By cuthead Last update Aug 12, 2007 — Installed 5,437 times.

最新修改版

in
Subscribe to 最新修改版 3 posts, 3 voices



tomchen1989 Scriptwright
FirefoxWindows

最新的修改了的在这里:

// ==UserScript==
// @name Google Cache Over GFW
// @include http://www.google.com/*
// @include http://www.google.cn/*
// ==/UserScript==

(function() {
var allLinks = document.links;
var ra=Math.round(Math.random()*1000);
var _raplaceIPAddress="";
switch(ra%7){
case 1:_raplaceIPAddress="66.102.7.104";break;
case 2:_raplaceIPAddress="66.102.9.104";break;
case 3:_raplaceIPAddress="66.102.11.104";break;
case 4:_raplaceIPAddress="216.239.59.104";break;
case 5:_raplaceIPAddress="74.125.77.132";break;
case 6:_raplaceIPAddress="64.233.179.104";break;

}
if (allLinks != null)
{
for (i = 0; i <alllinks>
{
if (allLinks [i].href.indexOf ("/search?q=cache:") > 0)
{
allLinks [i].href = allLinks [i].href.replace ("/search?q=cache:", "/search?&q=cache:");

allLinks [i].href = allLinks [i].href.replace ("74.125.94.160", _raplaceIPAddress);

}
}
}
}
)();

 
xz Scriptwright
MozillaX11


allLinks [i].href = allLinks [i].href.replace ("74.125.94.160", _raplaceIPAddress);
换成
allLinks [i].href = allLinks [i].href.replace (/\d+\.\d+\.\d+\.\d+/, _raplaceIPAddress);
应该会好一点,Cache服务器的IP并不见得就一定是74.125.94.160

 
birdstudio Scriptwright
FirefoxWindows

很久没有更新了。需要自己寻找最新的 IP 库。另外:
allLinks[i].href = allLinks [i].href.replace ('webcache.googleusercontent.com', _raplaceIPAddress);

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel