Skip to content

Instantly share code, notes, and snippets.

@KCCat
Created December 26, 2018 03:43
Show Gist options
  • Select an option

  • Save KCCat/23f1ba4e1a025a2c4f914fe72557e4d4 to your computer and use it in GitHub Desktop.

Select an option

Save KCCat/23f1ba4e1a025a2c4f914fe72557e4d4 to your computer and use it in GitHub Desktop.

Revisions

  1. KCCat created this gist Dec 26, 2018.
    16 changes: 16 additions & 0 deletions ADB.pac
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    function FindProxyForURL(url, host) {
    "use strict";

    var lIst = [
    "bayescom.com",
    "adsdk.dmzj.com",
    "umeng.com",
    ];

    var eNd = lIst.some(function(E,I,A){
    if(host.indexOf(E) != -1) return true;
    });

    if (eNd) {return "SOCKS5 0.0.0.0:0";} else {return "DIRECT";}
    }