Skip to content

Instantly share code, notes, and snippets.

@MihaelIsaev
Forked from swinton/proxy.pac
Created March 26, 2021 11:35
Show Gist options
  • Select an option

  • Save MihaelIsaev/917c6d51c31089d7454425b370a70d2c to your computer and use it in GitHub Desktop.

Select an option

Save MihaelIsaev/917c6d51c31089d7454425b370a70d2c to your computer and use it in GitHub Desktop.

Revisions

  1. @swinton swinton created this gist Feb 11, 2015.
    11 changes: 11 additions & 0 deletions proxy.pac
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    function FindProxyForURL(url, host) {
    var useSocks = ["imgur.com"];

    for (var i= 0; i < useSocks.length; i++) {
    if (shExpMatch(host, useSocks[i])) {
    return "SOCKS localhost:9999";
    }
    }

    return "DIRECT";
    }