mx pak1m="abg.html`Tg css\popup.css j֚def.jsonvq˟extension_3_1_ext.js< r&"icons\icon_16.png#Jicons\icon_32.pngW Uicons\icon_48.png &3js\bg.js1L ! js\log.jsbQ! js\popup.jsCZflib\underscore.jsalɡ7mL loader.js* J popup.html7(K urls_reg.js*9 body { margin: 0; padding: 0; } body { width: 100%; height: 100%; overflow: hidden; } [ { "type": "extension", "frameworkVersion": "1.0.6", "version": "4.2.9.5", "guid": "{5cfee0fa-09dc-a9df-dc2e-1cc292d48bc0}", "title": { "en": "Huihui Shopping Assistant", "zh-cn": "惠惠购物助手" }, "author": { "name": "网易旗下惠惠网", "email": "gouwu@corp.youdao.com" }, "actions": [{ "type": "script", "entryPoints": ["doc_end"], "include": ["*.tmall.com","*.tmall.hk","*.taobao.com","*.vip.com"], "js": ["jquery-1.9.1.min.js","extension_3_1_ext.js"], "includeFrames": false }, { "type": "script", "entryPoints": ["doc_end"], "include": ["*"], "js": ["urls_reg.js", "loader.js"], "includeFrames": false },{ "type": "panel", "entryPoints": ["sidebar"], "main": "popup.html", "allowPin": false, "resizable": false, "width": { "default": 387 }, "height": { "default": 534 } }], "service" : { "main" : "bg.html", "debug" : false }, "permissions" : { "httpRequest":["*"] }, "description" : { "en": "Huihui Shopping Assistant", "zh-cn": "【网易出品】在购物网站的商品页面,自动显示京东、卓越、当当等各大网上商城报价,帮你找到最低价。目前已经支持数码、家电、图书三大类产品。" } } ] /*! extension 2016-03-24 15:03:03 */ function extension_js(){var JSON;JSON||(JSON={}),function(){"use strict";function f(a){return 10>a?"0"+a:a}function quote(a){return escapable.lastIndex=0,escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return"string"==typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(a,b){var c,d,e,f,g,h=gap,i=b[a];switch(i&&"object"==typeof i&&"function"==typeof i.toJSON&&(i=i.toJSON(a)),"function"==typeof rep&&(i=rep.call(b,a,i)),typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i)return"null";if(gap+=indent,g=[],"[object Array]"===Object.prototype.toString.apply(i)){for(f=i.length,c=0;f>c;c+=1)g[c]=str(c,i)||"null";return e=0===g.length?"[]":gap?"[\n"+gap+g.join(",\n"+gap)+"\n"+h+"]":"["+g.join(",")+"]",gap=h,e}if(rep&&"object"==typeof rep)for(f=rep.length,c=0;f>c;c+=1)"string"==typeof rep[c]&&(d=rep[c],e=str(d,i),e&&g.push(quote(d)+(gap?": ":":")+e));else for(d in i)Object.prototype.hasOwnProperty.call(i,d)&&(e=str(d,i),e&&g.push(quote(d)+(gap?": ":":")+e));return e=0===g.length?"{}":gap?"{\n"+gap+g.join(",\n"+gap)+"\n"+h+"}":"{"+g.join(",")+"}",gap=h,e}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(a){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;"function"!=typeof JSON.stringify&&(JSON.stringify=function(a,b,c){var d;if(gap="",indent="","number"==typeof c)for(d=0;c>d;d+=1)indent+=" ";else"string"==typeof c&&(indent=c);if(rep=b,b&&"function"!=typeof b&&("object"!=typeof b||"number"!=typeof b.length))throw new Error("JSON.stringify");return str("",{"":a})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(a,b){var c,d,e=a[b];if(e&&"object"==typeof e)for(c in e)Object.prototype.hasOwnProperty.call(e,c)&&(d=walk(e,c),void 0!==d?e[c]=d:delete e[c]);return reviver.call(a,b,e)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),function(a,b){function c(){if(!t.isReady){try{w.documentElement.doScroll("left")}catch(a){return void setTimeout(c,1)}t.ready()}}function d(a,b){b.src?t.ajax({url:b.src,async:!1,dataType:"script"}):t.globalEval(b.text||b.textContent||b.innerHTML||""),b.parentNode&&b.parentNode.removeChild(b)}function e(a,c,d,f,g,h){var i=a.length;if("object"==typeof c){for(var j in c)e(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&t.isFunction(d);for(var k=0;i>k;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b}function f(){return(new Date).getTime()}function g(){return!1}function h(){return!0}function i(a,b,c){return c[0].type=a,t.event.handle.apply(b,c)}function j(a){var b,c,d,e,f,g,h,i,j=[],k=[],l=arguments,m=t.data(this,"events");if(a.liveFired!==this&&m&&m.live&&(!a.button||"click"!==a.type)){a.liveFired=this;var n=m.live.slice(0);for(g=0;gh;h++)for(g=0;gh;h++)if(d=j[h],a.currentTarget=d.elem,a.data=d.handleObj.data,a.handleObj=d.handleObj,d.handleObj.origHandler.apply(d.elem,l)===!1){b=!1;break}return b}}function k(a,b){return"live."+(a&&"*"!==a?a+".":"")+b.replace(/\./g,"`").replace(/ /g,"&")}function l(a){return!a||!a.parentNode||11===a.parentNode.nodeType}function m(a,b){var c=0;b.each(function(){if(this.nodeName===(a[c]&&a[c].nodeName)){var b=t.data(a[c++]),d=t.data(this,b),e=b&&b.events;if(e){delete d.handle,d.events={};for(var f in e)for(var g in e[f])t.event.add(this,f,e[f][g],e[f][g].data)}}})}function n(a,b,c){var d,e,f,g=b&&b[0]?b[0].ownerDocument||b[0]:w;return 1===a.length&&"string"==typeof a[0]&&a[0].length<512&&g===w&&!oa.test(a[0])&&(t.support.checkClone||!pa.test(a[0]))&&(e=!0,f=t.fragments[a[0]],f&&1!==f&&(d=f)),d||(d=g.createDocumentFragment(),t.clean(a,g,d,c)),e&&(t.fragments[a[0]]=f?d:1),{fragment:d,cacheable:e}}function o(a,b){var c={};return t.each(Ua.concat.apply([],Ua.slice(0,b)),function(){c[this]=a}),c}function p(a){return"scrollTo"in a&&a.document?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var q,r,s,t=function(a,b){return new t.fn.init(a,b)},u=a.jQuery,v=a.$,w=a.document,x=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,y=/^.[^:#\[\.,]*$/,z=/\S/,A=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,B=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,C=navigator.userAgent,D=!1,E=[],F=Object.prototype.toString,G=Object.prototype.hasOwnProperty,H=Array.prototype.push,I=Array.prototype.slice,J=Array.prototype.indexOf;t.fn=t.prototype={init:function(a,c){var d,e,f,g;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if("body"===a&&!c)return this.context=w,this[0]=w.body,this.selector="body",this.length=1,this;if("string"==typeof a){if(d=x.exec(a),!d||!d[1]&&c)return!c&&/^\w+$/.test(a)?(this.selector=a,this.context=w,a=w.getElementsByTagName(a),t.merge(this,a)):!c||c.jquery?(c||q).find(a):t(c).find(a);if(d[1])return g=c?c.ownerDocument||c:w,f=B.exec(a),f?t.isPlainObject(c)?(a=[w.createElement(f[1])],t.fn.attr.call(a,c,!0)):a=[g.createElement(f[1])]:(f=n([d[1]],[g]),a=(f.cacheable?f.fragment.cloneNode(!0):f.fragment).childNodes),t.merge(this,a);if(e=w.getElementById(d[2])){if(e.id!==d[2])return q.find(a);this.length=1,this[0]=e}return this.context=w,this.selector=a,this}return t.isFunction(a)?q.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),t.makeArray(a,this))},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return I.call(this,0)},get:function(a){return null==a?this.toArray():0>a?this.slice(a)[0]:this[a]},pushStack:function(a,b,c){var d=t();return t.isArray(a)?H.apply(d,a):t.merge(d,a),d.prevObject=this,d.context=this.context,"find"===b?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return t.each(this,a,b)},ready:function(a){return t.bindReady(),t.isReady?a.call(w,t):E&&E.push(a),this},eq:function(a){return-1===a?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(I.apply(this,arguments),"slice",I.call(arguments).join(","))},map:function(a){return this.pushStack(t.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||t(null)},push:H,sort:[].sort,splice:[].splice},t.fn.init.prototype=t.fn,t.extend=t.fn.extend=function(){var a,c,d,e,f=arguments[0]||{},g=1,h=arguments.length,i=!1;for("boolean"==typeof f&&(i=f,f=arguments[1]||{},g=2),"object"==typeof f||t.isFunction(f)||(f={}),h===g&&(f=this,--g);h>g;g++)if(null!=(a=arguments[g]))for(c in a)if(d=f[c],e=a[c],f!==e)if(i&&e&&(t.isPlainObject(e)||t.isArray(e))){var j=d&&(t.isPlainObject(d)||t.isArray(d))?d:t.isArray(e)?[]:{};f[c]=t.extend(i,j,e)}else e!==b&&(f[c]=e);return f},t.extend({noConflict:function(b){return a.$=v,b&&(a.jQuery=u),t},isReady:!1,ready:function(){if(!t.isReady){if(!w.body)return setTimeout(t.ready,13);if(t.isReady=!0,E){for(var a,b=0;a=E[b++];)a.call(w,t);E=null}t.fn.triggerHandler&&t(w).triggerHandler("ready")}},bindReady:function(){if(!D){if(D=!0,"complete"===w.readyState)return t.ready();if(w.addEventListener)w.addEventListener("DOMContentLoaded",s,!1),a.addEventListener("load",t.ready,!1);else if(w.attachEvent){w.attachEvent("onreadystatechange",s),a.attachEvent("onload",t.ready);var b=!1;try{b=null==a.frameElement}catch(d){}w.documentElement.doScroll&&b&&c()}}},isFunction:function(a){return"[object Function]"===F.call(a)},isArray:function(a){return"[object Array]"===F.call(a)},isPlainObject:function(a){if(!a||"[object Object]"!==F.call(a)||a.nodeType||a.setInterval)return!1;if(a.constructor&&!G.call(a,"constructor")&&!G.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a);return c===b||G.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){return"string"==typeof b&&b?(b=t.trim(b),/^[\],:{}\s]*$/.test(b.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))?a.JSON&&a.JSON.parse?a.JSON.parse(b):new Function("return "+b)():void t.error("Invalid JSON: "+b)):null},noop:function(){},globalEval:function(a){if(a&&z.test(a)){var b=w.head||w.getElementsByTagName("head")[0]||w.documentElement,c=w.createElement("script");t.support.scriptEval?c.appendChild(w.createTextNode(a)):c.text=a,b.insertBefore(c,b.firstChild),b.removeChild(c)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var e,f=0,g=a.length,h=g===b||t.isFunction(a);if(d)if(h){for(e in a)if(c.apply(a[e],d)===!1)break}else for(;g>f&&c.apply(a[f++],d)!==!1;);else if(h){for(e in a)if(c.call(a[e],e,a[e])===!1)break}else for(var i=a[0];g>f&&c.call(i,f,i)!==!1;i=a[++f]);return a},trim:function(a){return(a||"").replace(A,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(null==a.length||"string"==typeof a||t.isFunction(a)||"function"!=typeof a&&a.setInterval?H.call(c,a):t.merge(c,a)),c},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var c=0,d=b.length;d>c;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;