Skip to content

Instantly share code, notes, and snippets.

@KCCat
Created December 26, 2018 03:43
Show Gist options
  • Save KCCat/23f1ba4e1a025a2c4f914fe72557e4d4 to your computer and use it in GitHub Desktop.
Save KCCat/23f1ba4e1a025a2c4f914fe72557e4d4 to your computer and use it in GitHub Desktop.
iOS fake VPN ADBlocker
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