来源:网络之窗
Chrome自动翻墙脚本 很好很强大
众所周知,Blogspot、Youtube等都被和谐了,目前只能使用代理。
chenwenjin兄提供了自动翻墙脚本,很好很强大,感谢之...
请往下看..............
chenwenjin兄提供了自动翻墙脚本,很好很强大,感谢之...
请往下看..............
// ==UserScript==
// @name autoproxyproxy
// @author cwjt
// @description proxy
// @version 1.1
// @match chrome://chromewebdata/
// ==/UserScript==
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
//将Ansi编码的字符串进行Base64编码
function encode64(input) {
var output = "";
var chr1, chr2, chr3 = "";
var enc1, enc2, enc3, enc4 = "";
var i = 0;
do {
chr1 = input.charCodeAt(i++);
chr2 = input.charCodeAt(i++);
chr3 = input.charCodeAt(i++);
enc1 = chr1 >> 2;
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
enc4 = chr3 & 63;
if (isNaN(chr2)) {
enc3 = enc4 = 64;
} else if (isNaN(chr3)) {
enc4 = 64;
}
output = output +
keyStr.charAt(enc1) +
keyStr.charAt(enc2) +
keyStr.charAt(enc3) +
keyStr.charAt(enc4);
chr1 = chr2 = chr3 = "";
enc1 = enc2 = enc3 = enc4 = "";
} while (i < input.length);
return output;
}
var start;
var end;
lstr=document.body.innerText;
start=lstr.indexOf("://");
lstr=lstr.substring(start);
end=lstr.indexOf(" ");
lstr1=lstr=lstr.substring(0,end);
lstr=encode64(lstr);
if(document.location.href.indexOf("sneakme.net")==-1&&start!=-1&&lstr1.indexOf("sneakme.net")==-1)
{
document.location.href='http://www.sneakme.net/browse.php?u='+lstr+'&b=5';
}17:00再次修该一下。
[ 本帖最后由 chenwenjin 于 2009-5-23 17:03 编辑 ]
// @name autoproxyproxy
// @author cwjt
// @description proxy
// @version 1.1
// @match chrome://chromewebdata/
// ==/UserScript==
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
//将Ansi编码的字符串进行Base64编码
function encode64(input) {
var output = "";
var chr1, chr2, chr3 = "";
var enc1, enc2, enc3, enc4 = "";
var i = 0;
do {
chr1 = input.charCodeAt(i++);
chr2 = input.charCodeAt(i++);
chr3 = input.charCodeAt(i++);
enc1 = chr1 >> 2;
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
enc4 = chr3 & 63;
if (isNaN(chr2)) {
enc3 = enc4 = 64;
} else if (isNaN(chr3)) {
enc4 = 64;
}
output = output +
keyStr.charAt(enc1) +
keyStr.charAt(enc2) +
keyStr.charAt(enc3) +
keyStr.charAt(enc4);
chr1 = chr2 = chr3 = "";
enc1 = enc2 = enc3 = enc4 = "";
} while (i < input.length);
return output;
}
var start;
var end;
lstr=document.body.innerText;
start=lstr.indexOf("://");
lstr=lstr.substring(start);
end=lstr.indexOf(" ");
lstr1=lstr=lstr.substring(0,end);
lstr=encode64(lstr);
if(document.location.href.indexOf("sneakme.net")==-1&&start!=-1&&lstr1.indexOf("sneakme.net")==-1)
{
document.location.href='http://www.sneakme.net/browse.php?u='+lstr+'&b=5';
}17:00再次修该一下。
[ 本帖最后由 chenwenjin 于 2009-5-23 17:03 编辑 ]
附件
- autoproxy.user.rar (782 Bytes)
没有评论:
发表评论