Created
December 26, 2018 03:43
-
-
Save KCCat/23f1ba4e1a025a2c4f914fe72557e4d4 to your computer and use it in GitHub Desktop.
iOS fake VPN ADBlocker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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";} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment