Posted By

cuimingda on 10/17/09


Tagged

pac gfw


Versions (?)

My PAC Setting


 / Published in: JavaScript
 

URL: http://oragg.com/2009/10/pac-setting-for-google-chrome.html

  1. function FindProxyForURL(url, host) {
  2. var proxy1 = "PROXY 127.0.0.1:1984",
  3. proxy2 = "PROXY 127.0.0.1:9666",
  4. proxy3 = "PROXY 127.0.0.1:8580",
  5. proxy4 = "PROXY 127.0.0.1:8000";
  6.  
  7. if (shExpMatch(url,"*blogspot.com*") ||
  8. shExpMatch(url,"*box.net*") ||
  9. shExpMatch(url,"*chromeexperiments.com*") ||
  10. shExpMatch(url,"*chromium.org*") ||
  11. shExpMatch(url,"*facebook.com*") ||
  12. shExpMatch(url,"*meme.yahoo.com*") ||
  13. shExpMatch(url,"*opera.com*") ||
  14. shExpMatch(url,"*twitter.com*") ||
  15. shExpMatch(url,"*youtube.com*") ||
  16. shExpMatch(url,"*ytimg.com*")) {
  17. return proxy1;
  18. }
  19.  
  20. return "DIRECT";
  21. }

Report this snippet  

You need to login to post a comment.