+var normal="DIRECT",proxy="DIRECT",sink="127.0.0.1:8119",NYXBLACKLIST="PROXY "+sink,bad_da_host_exact_JSON={"example121212121212.com":null,"example21212121212.com":null,,"endexample1111.com":null},bad_da_host_exact_flag=!0,schemepart_RegExp=RegExp("^([\\w*+-]{2,15}):\\/{0,2}","i"),hostpart_RegExp=RegExp("^((?:[\\w-]+\\.)+[a-zA-Z0-9-]{2,24}\\.?)","i"),querypart_RegExp=RegExp("^((?:[\\w-]+\\.)+[a-zA-Z0-9-]{2,24}\\.?[\\w~%.\\/^*-]*)(\\??\\S*?)$","i"),domainpart_RegExp=RegExp("^(?:[\\w-]+\\.)*((?:[\\w-]+\\.)[a-zA-Z0-9-]{2,24})\\.?","i"),ipv4_RegExp=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/;function is_ipv4_address(l){var n=l.match(ipv4_RegExp),o=!1;if(n)for(o=!0,i=1;i<=4;i++)n[i]>=256&&(o=!1);return o}var hasOwnProperty=function(l,n){return l.hasOwnProperty(n)},use_pass_rules_parts_flag=!0,alert_flag=!1,debug_flag=!1;function NYXDEV(l,n){var o=is_ipv4_address(n);alert_flag&&alert("url is: "+l),alert_flag&&alert("host is: "+n);var u=l.match(schemepart_RegExp);u=u.length>0?u[1]:"";var c=l.replace(schemepart_RegExp,""),e=c.replace(hostpart_RegExp,""),a=c.replace(querypart_RegExp,"$1"),m=(o||c.replace(domainpart_RegExp,"$1"),o||a.replace(domainpart_RegExp,"$1"),o?n:n.replace(domainpart_RegExp,"$1"));return"https"==u&&"/"==e&&bad_da_host_exact_flag&&(hasOwnProperty(bad_da_host_exact_JSON,m)||hasOwnProperty(bad_da_host_exact_JSON,n))?(alert_flag&&alert("HTTPS NYXBLACKLIST: "+n+", "+m),NYXBLACKLIST):"https"!=u&&"http"!=u||(debug_flag&&alert_flag&&(alert("hasOwnProperty(bad_da_host_exact_JSON,"+m+"): "+(bad_da_host_exact_flag&&hasOwnProperty(bad_da_host_exact_JSON,m))),alert("hasOwnProperty(bad_da_host_exact_JSON,"+n+"): "+(bad_da_host_exact_flag&&hasOwnProperty(bad_da_host_exact_JSON,n)))),!bad_da_host_exact_flag||!hasOwnProperty(bad_da_host_exact_JSON,m)&&!hasOwnProperty(bad_da_host_exact_JSON,n))?(alert_flag&&alert("Default PASS: "+l+", "+n),proxy):(alert_flag&&alert("NYXBLACKLIST: "+l+", "+n),NYXBLACKLIST)}var PROXY_DIRECT="DIRECT",DIRECT="DIRECT";function s(l,n){return shExpMatch(l,n)}function FindProxyForURL(l,n){var o=l.toLowerCase();return s(o,"*.exampleendung121212*")||s(o,"*examplepredomain121212*")||s(o,"*.examplesubdomain121212.*")?"PROXY 127.0.0.1:8119":NYXDEV(l,n)}
0 commit comments