很简单的几步就可以实现翻墙,访问 Blogspot、Youtube 等,
本代理的优点是 用户可以登录并且在线可以看Youtube视频,这是一般在线代理所不能办到的!
1、复制如下代码保存为autoproxy.user.js
// ==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='https://www.sneakme.net/browse.php?u='+lstr+'&b=5';
}
并将autoproxy.user.js复制到
C:\Documents and Settings\Administrator\Local Settings\Application Data\Google\Chrome\User Data\Default\user scripts
一般情况下没有user scripts目录,需手工建立!其中红色部分Administrator换成您的用户名。
2、打开谷歌浏览器快捷方式属性,在目标一栏中添加 -enable-user-scripts ,如我的就是
"C:\Documents and
Settings\Administrator\Local Settings\Application
Data\Google\Chrome\Application\chrome.exe" -enable-user-scripts
3、复制如下代码保存为翻墙代理.html,用谷歌浏览器打开,填入你要翻墙的网址即可!
<form
action="https://www.sneakme.net/includes/process.php?action=update"
method="post"><input name="u" id="url_textbox"
type="text"><input value="Go!" id="button" type="submit">
建议收藏你的代理网页为标签,以便快速访问!
也可以使用 https://www.sneakme.net/ 输入网址访问。