Skip to content

Instantly share code, notes, and snippets.

@breezhang
Created February 25, 2012 15:49
Show Gist options
  • Save breezhang/1909184 to your computer and use it in GitHub Desktop.
Save breezhang/1909184 to your computer and use it in GitHub Desktop.
switch proxy for mainland china :)
/*you need file */
/*
You can visit http://autoproxy2pac.appspot.com/
download http://autoproxy2pac.appspot.com/gfwtest.js append some stuff
e.g
function FindProxyForURL(url, host) {
if(isBlockedByGFW(url)) return "PROXY xxxxx;PROXY xxxxx";
return "DIRECT";
}
js function woking NG
i advice download plugin (Chrome firefox is good choice)
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment