mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-27 20:03:45 +03:00
38 lines
14 KiB
JavaScript
Executable File
38 lines
14 KiB
JavaScript
Executable File
function FindProxyForURL(url, host) {
|
|
// ProstoVPN.AntiZapret PAC-ip File
|
|
// Generated on Sun Nov 22 10:12:29 MSK 2015
|
|
|
|
// The whole PAC script is reevaluated on each call of this function.
|
|
|
|
host = host.replace(/\.+$/).toLowerCase(); // E.g. WinHTTP may be nasty.
|
|
|
|
// HTTPS proxy is a HTTP proxy over SSL. It is NOT CONNECT proxy!
|
|
// Supported only in Chrome and Firefox.
|
|
// http://www.chromium.org/developers/design-documents/secure-web-proxy
|
|
// This is to bypass FULL DPI
|
|
var isIE = /*@cc_on!@*/!1;
|
|
var viaProxy = isIE
|
|
? 'PROXY proxy.antizapret.prostovpn.org:3128; DIRECT'
|
|
: 'HTTPS proxy.antizapret.prostovpn.org:3143; PROXY proxy.antizapret.prostovpn.org:3128; DIRECT';
|
|
|
|
return (function ifProxyBySimpleTrie(host, simpleTrie) {
|
|
var letters = host.split('').reverse();
|
|
while(letters.length) {
|
|
var letter = letters.shift();
|
|
var arr = simpleTrie[letter];
|
|
var link = arr[0];
|
|
|
|
if (link.length > letters.length)
|
|
return false;
|
|
|
|
for( var i=0; i < link.length; ++i )
|
|
if ( letters[i] !== link.charAt(i) )
|
|
return false;
|
|
|
|
letters = letters.slice(link.length);
|
|
simpleTrie = arr[1];
|
|
if (!simpleTrie)
|
|
return true;
|
|
}
|
|
})(host, {"0":["",{"4":[".442.17.212",false],"5":[".43.59.902",false],"6":["1.71.202.941",false]}],"1":["61.71.202.941",false],"2":["01.021.84.73",false],"6":["22.39.471.39",false],"7":["31.22.221.351",false],"8":["5.66.44.891",false],"9":["61.481.112.59",false],"u":["",{"s":[".",{"4":["2",{"m":["itni",false],"o":["kla",false]}],"i":["",{"a":["geno",false],"k":["hcoleb",false],"p":["r",false]}],"k":["cajonisac",false],"s":["",{"t":["olsmg",false],"a":["menic",false],"l":["",{"e":["domkcohs",false],"l":["ipgel",false]}],"c":["itocran",false],"e":["sunobonisactsetal.www",false]}],"o":["nropotof",false],"a":["",{"v":["ksom-iktutitsorp",false],"k":["lettoh",false]}],"d":["argnodnol",false],"v":["thctam",false],"r":["otbom",false],"b":["",{"d":["ees",false],"a":["lcr",false]}],"z":["",{"o":["nisac.",{"s":["emag.www",false],"w":["ww",false]}],"e":["rawtfos",false]}],"h":["",{"c":["raesoediv",false],"a":["rt",false],"t":["ot.www",false]}],"t":["",{"e":["nanokaz",false],"n":["errotvt",false]}],"n":["akluvonisac.www",false]}],"r":[".",false],"n":[".",{"s":["",{"u":["r4nedews.www",false],"o":["sol",false],"t":["nerrot-x",false]}],"n":["oino.",false],"y":["ticmitni.www",false]}],"e":[".",{"4":["2ksiop.aksod.www",false],"9":["",{"m":["i",false],"s":["b",false]}],"a":["",{"k":["tu",false],"v":["arp-tseb",false]}],"h":["wj-yub",false],"c":["",{"i":["s",{"s":["alc-onisac.www",false],"u":["m-ur.ajnas",false]}],"r":["lagelyub",false]}],"y":["",{"a":["lpknip.surpohsamdm",false],"t":["raprof",false]}],"s":["",{"r":["atsrekop.www",false],"u":["sacuaceerf",false],"t":["ropsratsder.www",false]}],"e":["",{"i":["vomvti",false],"n":["ut-teg",false],"s":["necninahgfa.www",false],"m":["itrekop.www",false]}],"d":["a",{"o":["lnwodv",false],"l":["k",false]}],"b":["rgel",false],"f":["rgel",false],"p":["ohsbewslacimehchcraeser",false],"u":["sdeeps",false],"o":["nisac",{"l":["lahcisum.www",false],"s":["koocniatpac.www",false],"e":["calapsreyalp.www",false],"r":["atsder.www",false],"y":["",{"a":["daniw.www",false],"t":["iclautriv.www",false]}],"d":["lognokuy.www",false]}],"n":["okirur.www",false]}],"h":[".",{"t":["fosjj.itot.www",false],"u":["ag.iljal",false]}],"m":[".hcinaymes",false],"a":[".moc.ekomsenilno.www",false]}],"c":["",{"s":[".aifam",false],"c":[".",false],"t":[".",{"i":["atneh.www",false],"e":["dit",false]}],"e":[".sur.tnerrot",false]}],"m":["",{"i":[".",{"s":["dees-srorre",false],"w":["n6",false],"h":["sacotols",false],"e":["calapniw.www",false]}],"o":["c.",false],"a":[".",{"s":["orbil",false],"l":["atroplagel",false]}],"f":[".",{"t":["sal.www",false],"i":["ktutitsorp",false]}]}],"t":["",{"a":[".",{"s":["emyzne.www",false],"t":["ols777",false]}],"e":["n.",false],"i":[".",{"t":["opsgolb.oljux-nitup",false],"r":["pinu.iaa",false],"n":["ikhsihs",false],"s":["ratsrekop.www",false]}],"s":[".ixrana.yerg",false]}],"z":["",{"k":[".",{"4":["2ocla",false],"m":["odorp.",false],"a":["",{"k":["",{"i":["rbur",false],"w":["onik",false]}],"i":["retsa",false],"b":["man",false],"z":["etsa.www",false]}],"r":["",{"e":["dils",false],"o":["tffa.tac",false],"u":["n.oediv",false]}],"d":["oponik",false],"t":["e",{"e":["rts.www",false],"k":["ramlagel",false]}],"l":["iamorp.cisum",false],"v":["tym",false],"o":["bc.www",false],"e":["butwc.www",false],"p":["milo.www",false]}],"i":["b.",false],"c":[".",{"4":["2evitca.222sdvu.moc.isems-iynletiruk",false],"s":["osto",false],"e":["filafla",false],"b":["ulcder",false],"a":["",{"n":["atup",false],"k":["hcoved",false],"v":["tsmokanz",false]}],"i":["khcoved",false],"g":["usod",false],"r":["etip",false],"o":["vtsmokanz",false]}],"u":[".",{"o":["ttoldamo",false],"m":["olsi.murof",false],"r":["azabrepus.www",false]}],"y":["x.",{"b":["ulc-nakluv",false],"n":["",{"a":["kluv",false],"n":["pot.sledom",false]}]}],"a":[".",{"o":["ediv.",{"w":["ww",false],"e":["vitceted-eurt",false]}],"s":["cip",false],"n":["amonik.www",false]}],"b":[".",{"x":["imer",false],"a":["varp",false],"c":["rlayor",false]}]}],"g":["",{"g":[".drazzilb",false],"r":["o.",false],"k":[".",{"t":["nerrot.www",false],"s":["tnerrotagem",false]}],"a":[".",{"e":["riwemirp.www",false],"d":["v",false]}],"b":[".enilnoaktelur.www",false]}],"o":["",{"c":[".",{"e":["",{"r":["omkrul",false],"l":["aselohw-zzub.gb",false],"i":["dzemzov",false]}],"d":["alk42",false],"y":["",{"t":["raprof",false],"c":["ide.sdees-yub",false],"a":["wayaw",false]}],"n":["",{"i":["wnacluv",false],"o":["araf-onizac",false]}],"b":["alizid",false],"s":["",{"t":["olsd3.www",false],"d":["ees-srorre",false]}],"r":["otanimieg",false],"i":["t",{"s":["ovonmrut",{"s":["",false],"h":["s",false]}],"a":["motva-eyvorgi",false]}],"a":["",{"i":["nranemes",false],"m":["odonik",false]}],"v":["oluahs-razal",false],"p":["",{"o":["kran",false],"m":["ul",false]}],"h":["cinaymes",false],"o":["nisac",{"t":["siwt",false],"b":["ulctols",false]}],"g":["nikmaerts",false],"t":["",{"s":["ibannaceht.www",false],"e":["b-nakluv",false]}]}],"f":["ni.",false],"t":[".",{"m":["urofbelec",false],"n":["o",{"b":["bir.der",false],"i":["no.",false]}],"s":["",{"l":["rigrepiv",false],"r":["otavitomed",false]}],"p":["mud",false],"e":["romkrul",false],"y":["",{"d":["erv",false],"e":["knom",false]}],"a":["n.lbixes",false],"c":["r-teg.www",false]}],"n":[".",{"a":["ropsaid.www",false],"g":["golb.024llihc",false],"y":["bolso.www",false]}],"r":["",{".":["vtoporpa.www",false],"p":[".",false]}],"s":[".",{"g":["usod.www",false],"e":["romkrul",false]}],"j":[".ude.unamma.www",false]}],"e":["",{"c":["",{"a":["ps.",{"p":["ohsffuts",false],"c":["r",false]}],"n":["eics.akhcezink-ayansserda",false]}],"f":["ac.urhc",false],"m":["",{"a":["n.",{"s":["mlifonik",false],"o":["nisactraza",false],"p":["okran",false],"a":["",{"d":["zip",false],"k":["rayob.swen",false]}],"e":["",{"r":["omemllet",false],"v":["ol-ot-thgir",false]}],"r":["ekcart",false],"j":["ea1c--nx",false]}],".":["",{"4":["molpid",false],"z":["onisac",false],"r":["evosievol.evihcra",false],"i":["nwwa.ndc",false],"o":["",{"t":["amagnuhs.www",false],"c":["itetse",false]}],"b":["u",{"k":["oediv.www",false],"l":["c",false]}],"n":["",{"o":["omam",false],"a":["monik",false],"i":["ocyssalc.www",false]}],"p":["o",{"k":["ran.www",false],"n":["ik",false]}],"s":["",{"r":["edwop",false],"o":["sto",false],"d":["",{"i":["vt.www",false],"a":["olnwodtnerrot.www",false]}]}],"x":["",{"-":["retsim",false],"e":["",{"n":["it",false],"s":["",false]}]}],"t":["n",{"e":["cedni.www",false],"u":["hm",false]}],"a":["",{"d":["napocol.www",false],"i":["nranemes",false]}],"h":["cinaymes",false],"u":["kuv",false],"d":["lib.www",false],"m":["ucagraz",false]}]}],"d":[".",{"t":["raehnekorbym.www",false],"s":["tuocsgurd",false]}],"s":[".",{"1":["ebutuoy",false],"t":["opsgolb.esacvolihzovon",false],"a":["",{"a":["yn.iebekus",false],"c":["itamardaidepolcycne",false]}],"y":["abetaripeht",false]}],"p":[".sdees-srorre",false],"b":[".",{"s":["ratsrekop.www",false],"n":["",false],"y":["deew.www",false]}],"r":[".",{"r":["atinas",false],"o":["mkrul",false]}],"t":["is",{"b":["ew.lagelpot",false],".":["ppzo",false]}],"i":[".sgurd.www",false],"g":[".oedivym.www",false],"e":[".",{"a":["malker.www",false],"s":["ratsrekop.www",false]}]}],"a":["",{"g":[".",{"5":["4lagel",false],"h":["alwad",false],"p":["ohsretupmoctseb",false],"e":["len",false]}],"u":[".",false],"c":[".",{"a":["danacmom",false],"t":["",{"a":["rip",false],"s":["entib",false],"e":["lur.www",false]}],"s":["deesrevaeb.www",false],"r":["uftacgnizalb.www",false]}],"i":["sa.tebxam.efac",false],"l":[".imotih",false],"j":["nin.",{"r":["ku4bsp",false],"e":["retipvidipstipuk",false],"s":["ledomteews",false]}]}],"p":["",{"o":["t.",{"o":["nizak.www",false],"a":["t1bro",false]}],"j":[".",false]}],"w":["",{"e":["iver.tlas-neslip-sredwop-sdnelb-gnikoms-42enilno-occabot.af-4-9a-tsoroks-raugaj-hwj-suilatsirc-ratsyxes-sredwop.abmamkcalb-hsurhaj-otnemarcas-nahgfa-74ka-isems-tipuk.weiver-42enilno-occabot",false],"p":[".",false],"t":[".eriwemirp.www",false]}],"v":["",{"l":[".",{"e":["mitmoob.www",false],"t":["envt.sur",false],"m":["alsi.www",false]}],"t":[".",false]}],"k":["",{"d":[".",{"r":["irhat-tu-bzih.www",false],"e":["disedogned",false],"s":["ratsrekop.www",false]}],"u":[".",{"g":["ro.zakvak",false],"o":["c.",false]}],"t":[".",{"4":["2-gusod",false],"a":["issuryortsed",false],"z":["ibmokran",false],"m":["odonik-enilno",false],"l":["agellaru",false]}],"s":[".",{"s":["lacimehc-cr",false],"t":["soh.bulc-gkd",false]}],"n":["il.golsiru",false],"p":[".moc.aamas.soediv",false]}],"l":["",{"m":[".slvpc",false],"a":["gel.emca",false],"p":[".",{"u":["ramoken",false],"z":["erawkrad",false],"g":["ro.rotur",false],"r":["pgzk.www",false]}],"n":[".",{"e":["nirambus-neerg",false],"t":["opsgolb.81ayarf",false],"r":["",{"i":["rhat-tu-bzih.www",false],"e":["",false]}],"s":["",{"d":["ees",{"e":["suohneerg.www",false],"o":["rue.www",false],"a":["mos.www",false],"f":["filps.www",false]}],"w":["enhaj",false]}],"i":["",{"t":["icmitni.www",false],"s":["ems-einletiryk",false]}],"y":["",{"r":["iafysp",false],"t":["icmitni.",{"w":["ww",false],"k":["sm",false]}]}],"p":["okran",false],"n":["oissap-hctud.www",false],"l":["jitsneeg.www",false],"a":["knatat.www",false]}],"i":["",{"a":["me.nakluvym",false],".":["oc.",{"s":["serpswen.www",false],"t":["opsgolb.msinoisivertsuacoloh",false]}]}]}],"y":["",{"m":[".onisac",false],"b":[".",{"y":["ticonisac",false],"m":["o",{"c":[".topsgolb.oljux-nitup",false],"d":["orp.sda",false]}],"k":["ile",false],"t":["i",{"s":["opedon.www",false],"h":["-ym",false]}],"v":["eligom.kepgb.www",false]}],"l":[".zib.agel",false],"a":["dot.",{"m":["alsiym",false],"a":["gnam",false]}],"x":["es.eerps",false]}],"b":["",{"u":["lc.",{"s":["osto",false],"n":["",false],"e":["filnrop",false],"h":["cinaymes",false],"i":["ktosark-piv",false],"x":["esdalv",false]}],"a":["c.",{"h":["cinaymes",false],"n":["oino.",false]}],"d":["hesa08--nx.mbfbga1negbtd----nx",false]}],"s":["",{"w":[".",{"f":["nah.erutlucsibannac",false],"s":["",{"a":["molpid",false],"r":["e",{"t":["tircdliw",false],"d":["loftseb",false]}],"d":["ees-srorre",false]}],"y":["satxe",false],"x":["ofemag",false],"o":["nropel",false],"l":["labtoofevil",false],"d":["",{"e":["mitlum.www",false],"a":["",false]}],"e":["",{"s":["abelif.www",false],"l":["ifagem",false]}],"p":["",{"w":["-sn.www",false],"o":["kran",false]}],"a":["",{"k":["telur",false],"v":["atlop.serper",false],"i":["nranemes",false],"g":["pi.www",false]}],"r":["ekcartur",false],"h":["cinaymes",false],"n":["ikhsihs",false],"t":["tenna.www",false],"b":["ewegami.www",false],"v":["teerftcejorp.www",false]}],"u":[".",{"6":["7lagel",false],"8":["3e.www",false],"i":["amnod",false],"o":["odilb.notfa",false],"p":["afpaf",false],"y":["traprof",false],"a":["diarim",false],"r":["ekaerhp",false],"e":["",{"b":["utkv",false],"m":["ohenilno.367704103s",false],"o":["m-nijuod.www",false]}],"f":["lowrew",false],"z":["3pmodni.www",false]}],"e":[".",{"s":["ratsrekop.www",false],"o":["nropscimoc",false]}],"m":[".",{"t":["nilf",false],"s":["dees-srorre",false],"d":["alk",false]}],"c":["ip.ijin",false]}],"x":["",{"c":[".gusod",false],"x":["x.",false],"s":[".",{"v":["t",{"e":["vil",false],"u":["revil",false]}],"d":["alk",false],"t":["rops",{"v":["tevil",false],"e":["vil",false]}],"u":["rvtevil",false],"p":["okran.www",false]}],"m":[".pokran",false]}],"h":["",{"c":[".oool",false],"s":[".skoob",false]}],"d":["",{"m":[".",{"5":["55.www",false],"e":["es",false],"t":["",false]}],"c":[".",{"t":["nerrot",false],"n":["rub",false]}],"i":[".ro.rirhat-tubzih",false],"e":["nifednu",{"a":["g.halwad.www",false],"m":["oc.",{"k":["indevopsi.www",false],"m":["ehcesoprup",false]}]}],"g":[".oo.ksribisatsar",false]}],"n":["",{"c":[".",{"c":["rmarg",false],"m":["oc.wmd",false],"y":["llaelohw",false]}],"i":[".",{"t":["",{"s":["ors",false],"n":["emukod",false]}],"p":["ohsococ",false],"m":["lif",{"a":["mron",false],"o":["re",false]}],"s":["",{"y":["obldm",false],"d":["ees-srorre",false],"l":["egna-nn",false],"w":["enpot",false]}],"n":["",{"i":["",{"k":["hsihs",false],"v":["olog",false]}],"a":["",false]}],"l":["opokin.murof",false],"o":["nisacitirutuf",false],"a":["lagelen",false],"r":["ku4bsp",false],"e":["rahsdibar",false],"i":["rtoms",false],"d":["hekitorev",false],"b":["acilohw",false]}],"m":[".",{"y":["abetaripeht",false],"b":["il",false]}],"p":[".swen",false]}],"r":["",{"e":["tnec.dalk",false],"b":[".",false],"f":[".",{"s":["ratsrekop.www",false],"e":["erf.nilacip",false]}],"t":[".",{"m":["oc.",{"r":["unielasir.www",false],"t":["opsgolb.",{"r":["abyax",false],"o":["ljux-nitup",false]}]}],"n":["eg.",{"r":["un.www",false],"k":["alp",false]}]}]}],"i":["",{"f":[".nn.etizarap",false],"b":["om.",false],"a":["1p--nx.",{"l":["",{"2":["lxmcc4rb9nad35-42----nx",false],"5":["bwcfa8mck6-45--nx",false]}],"a":["",{"2":["ecqh3dbepcea1jbs7----nx.www",false],"5":["h4pdfcckxabto----nx",false]}],"e":["3aqcaua08--nx.www",false],"c":["",{"2":["aufymmba08--nx",false],"f":["2gjc8cnlserpnbck6-----nx",false]}],"f":["mabkefhfshabto----nx",false],"o":["5a2rza5fctxcqva5feagjdc8--2---nx",false],"r":["jglymck6-66--nx",false],"k":["jkqcboosaa09--nx",false],"w":["eea1n--nx",false]}]}],"f":["c.rotur-wen",false]}) ? viaProxy : 'DIRECT';
|
|
} |