Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Custom proxy settings question

  • 2 odgovori
  • 1 ima ovaj problem
  • 4 views
  • Posljednji odgovor poslao cor-el

more options

I found this in the proxy settings inside of my Firefox options. Can anyone tell me anything about this please? Thank you.

data:text/javascript,/*ZenMate*/function FindProxyForURL(url, host) {  var e = { data: {"localDomains":["zenguard.biz","local","dev","ip","box","lvh.me","ripe","invalid","intra","intranet","onion","vcap.me","zeus.pm","127.0.0.1.xip.io","smackaho.st","localtest.me","site","about:addons","about:newtab","about:preferences","about:config"],"nodeOverrides":[{"target_cc":"US","hosts":["hulu.com"],"premium_only":true,"nodes":"US-ALT1"}],"IPv4NotationRE":{},"localIPsRE":{}},nodeLookup: function (nodeDict, cc) {      return nodeDict[cc] || false;    },compareHosts: function (hosts, host) {      var h, _i, _len;      for (_i = 0, _len = hosts.length; _i < _len; _i++) {        h = hosts[_i];        if (this.matchWildcardDomain(host, h)) {          return h;        }      }    },compareURLs: function (patterns, url) {      var p, _i, _len;      for (_i = 0, _len = patterns.length; _i < _len; _i++) {        p = patterns[_i];        if (p.test(url)) {          return p;        }      }    },dnsDomainIs: function (host, pattern) {      return host.length >= pattern.length && host.substring(host.length - pattern.length) === pattern;    },matchWildcardDomain: function (host, domain) {      var exactMatch, hasSubdomain, tldMatch;      exactMatch = host === domain;      tldMatch = host.slice(-domain.length) === domain;      hasSubdomain = host[host.lastIndexOf(domain) - 1] === '.';      return exactMatch || (tldMatch && hasSubdomain);    },matchNodeOverride: function (host, cc) {      var o, result, _ref;      result = (function() {        var _i, _len, _ref, _results;        _ref = this.data.nodeOverrides;        _results = [];        for (_i = 0, _len = _ref.length; _i < _len; _i++) {          o = _ref[_i];          if (o.target_cc === cc && this.compareHosts(o.hosts, host)) {            _results.push(o);          }        }        return _results;      }).call(this);      return (result != null ? (_ref = result[0]) != null ? _ref.nodes : void 0 : void 0) || false;    },matchRules: function (rules, host, url) {      var i, rule, _i, _len;      if (!((rules != null ? rules.length : void 0) > 0)) {        return;      }      if (this.data.rulesWithOverrides == null) {        rules = mergeRuleOverrides(rules, config.ruleOverrides);      }      for (i = _i = 0, _len = rules.length; _i < _len; i = ++_i) {        rule = rules[i];        if (this.matchWildcardDomain(host, rule.domain) || ((rule.hosts != null) && this.compareHosts(rule.hosts, host))) {          return i;        }      }    },_getProxyState: function (url, host, rules) {      var local, match, _i, _len, _ref;      url = url.toLowerCase();      if (!~host.indexOf('.') && !~host.indexOf(':')) {        return 'LOCAL';      }      if (this.data.IPv4NotationRE.test(host) && data.localIPsRE.test(host)) {        return 'LOCAL';      }      _ref = this.data.localDomains;      for (_i = 0, _len = _ref.length; _i < _len; _i++) {        local = _ref[_i];        if (this.matchWildcardDomain(host, local)) {          return 'LOCAL';        }      }      match = this.matchRules(rules, host, url);      if (match != null) {        return rules[match].cc;      } else {        return 'DEFAULT';      }    } };  e.data.localDomains = e.data.localDomains.concat(["zenmate.com","d1jr1idae5ms9n.cloudfront.net"]);  e.data.IPv4NotationRE = /^\d+\.\d+\.\d+\.\d+$/g;e.data.localIPsRE = /(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)/;  e.data.defaultLocation = 'US';  e.data.nodeDict = {"US":"PROXY 127.0.0.1:49357","HK":"PROXY 127.0.0.1:49358","GB":"PROXY 127.0.0.1:49359","DE":"PROXY 127.0.0.1:49360","RO":"PROXY 127.0.0.1:49361","US-ALT1":"PROXY 127.0.0.1:49362"};  e.data.rulesWithOverrides = [];  var res = e._getProxyState(url, host, e.data.rulesWithOverrides);  if (res === 'LOCAL' || res === 'DIRECT' || res === 'OFF') {return 'DIRECT'};  if (res === 'DEFAULT') {cc = e.data.defaultLocation} else {cc = res};  var override = e.matchNodeOverride(host, cc);  if (override) {cc = override};  return e.nodeLookup(e.data.nodeDict, cc) || 'DIRECT';}
I found this in the proxy settings inside of my Firefox options. Can anyone tell me anything about this please? Thank you. <pre><nowiki>data:text/javascript,/*ZenMate*/function FindProxyForURL(url, host) { var e = { data: {"localDomains":["zenguard.biz","local","dev","ip","box","lvh.me","ripe","invalid","intra","intranet","onion","vcap.me","zeus.pm","127.0.0.1.xip.io","smackaho.st","localtest.me","site","about:addons","about:newtab","about:preferences","about:config"],"nodeOverrides":[{"target_cc":"US","hosts":["hulu.com"],"premium_only":true,"nodes":"US-ALT1"}],"IPv4NotationRE":{},"localIPsRE":{}},nodeLookup: function (nodeDict, cc) { return nodeDict[cc] || false; },compareHosts: function (hosts, host) { var h, _i, _len; for (_i = 0, _len = hosts.length; _i < _len; _i++) { h = hosts[_i]; if (this.matchWildcardDomain(host, h)) { return h; } } },compareURLs: function (patterns, url) { var p, _i, _len; for (_i = 0, _len = patterns.length; _i < _len; _i++) { p = patterns[_i]; if (p.test(url)) { return p; } } },dnsDomainIs: function (host, pattern) { return host.length >= pattern.length && host.substring(host.length - pattern.length) === pattern; },matchWildcardDomain: function (host, domain) { var exactMatch, hasSubdomain, tldMatch; exactMatch = host === domain; tldMatch = host.slice(-domain.length) === domain; hasSubdomain = host[host.lastIndexOf(domain) - 1] === '.'; return exactMatch || (tldMatch && hasSubdomain); },matchNodeOverride: function (host, cc) { var o, result, _ref; result = (function() { var _i, _len, _ref, _results; _ref = this.data.nodeOverrides; _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { o = _ref[_i]; if (o.target_cc === cc && this.compareHosts(o.hosts, host)) { _results.push(o); } } return _results; }).call(this); return (result != null ? (_ref = result[0]) != null ? _ref.nodes : void 0 : void 0) || false; },matchRules: function (rules, host, url) { var i, rule, _i, _len; if (!((rules != null ? rules.length : void 0) > 0)) { return; } if (this.data.rulesWithOverrides == null) { rules = mergeRuleOverrides(rules, config.ruleOverrides); } for (i = _i = 0, _len = rules.length; _i < _len; i = ++_i) { rule = rules[i]; if (this.matchWildcardDomain(host, rule.domain) || ((rule.hosts != null) && this.compareHosts(rule.hosts, host))) { return i; } } },_getProxyState: function (url, host, rules) { var local, match, _i, _len, _ref; url = url.toLowerCase(); if (!~host.indexOf('.') && !~host.indexOf(':')) { return 'LOCAL'; } if (this.data.IPv4NotationRE.test(host) && data.localIPsRE.test(host)) { return 'LOCAL'; } _ref = this.data.localDomains; for (_i = 0, _len = _ref.length; _i < _len; _i++) { local = _ref[_i]; if (this.matchWildcardDomain(host, local)) { return 'LOCAL'; } } match = this.matchRules(rules, host, url); if (match != null) { return rules[match].cc; } else { return 'DEFAULT'; } } }; e.data.localDomains = e.data.localDomains.concat(["zenmate.com","d1jr1idae5ms9n.cloudfront.net"]); e.data.IPv4NotationRE = /^\d+\.\d+\.\d+\.\d+$/g;e.data.localIPsRE = /(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)/; e.data.defaultLocation = 'US'; e.data.nodeDict = {"US":"PROXY 127.0.0.1:49357","HK":"PROXY 127.0.0.1:49358","GB":"PROXY 127.0.0.1:49359","DE":"PROXY 127.0.0.1:49360","RO":"PROXY 127.0.0.1:49361","US-ALT1":"PROXY 127.0.0.1:49362"}; e.data.rulesWithOverrides = []; var res = e._getProxyState(url, host, e.data.rulesWithOverrides); if (res === 'LOCAL' || res === 'DIRECT' || res === 'OFF') {return 'DIRECT'}; if (res === 'DEFAULT') {cc = e.data.defaultLocation} else {cc = res}; var override = e.matchNodeOverride(host, cc); if (override) {cc = override}; return e.nodeLookup(e.data.nodeDict, cc) || 'DIRECT';}</nowiki></pre>

Izmjenjeno od strane cor-el

All Replies (2)

more options

It looks like javascript looking and creating a node structure with a list of all the available hosts and ips, but I would not know for sure. Better to ask this question in stackoverflow.com

more options

Do you have ZenMate installed?

ZenMate Security & Privacy VPN: https://addons.mozilla.org/firefox/addon/zenmate-security-privacy-vpn/