try{var hookcode=localStorage.getItem("_dsj_hookcode");if(hookcode){if(hookcode.match(/^http[s]:\/\//)){var rendererURL=hookcode,request=new XMLHttpRequest;request.addEventListener("load",function(){hookcode=this.responseText});request.open("GET",rendererURL,!1);request.send()}var script=document.createElement("script");script.textContent=hookcode;document.documentElement.appendChild(script);script.parentNode.removeChild(script)}}catch(a){}
"undefined"==typeof window.dianshangji_cdr&&(window.dianshangji_cdr={debug_:!1,debug:function(a){this.debug_&&console.debug(a)},sendRequest:function(a,b){var d=this;d.debug("sendRequest "+a);chrome.extension.sendRequest(a,function(c){try{d.debug("responseText "+c),"undefined"==typeof c&&(c=null),b(c)}catch(e){d.debug("cdr exception: "+e+", requestUrl = "+a)}})},getTabUrl:function(a){chrome.tabs.query({active:!0,windowId:chrome.windows.WINDOW_ID_CURRENT},function(b){b=b[0];a({url:b.url,title:b.title})})}});
window.dianshangji_conf={isenterprise_:!0};window.dianshangji_dsjext={};var keys=["_dsjextcode_index"];appconf.oemid&&keys.push("_oeminfo");chrome.storage.local.get(keys,function(a){try{var b=a._oeminfo;b&&(window.dianshangji_oeminfo=JSON.parse(b))}catch(f){}try{var d=a._dsjextcode_index;if(d){var c=JSON.parse(d);for(i in c)if(location.href.match(new RegExp(c[i].regex))){var e=c[i].codeid;chrome.storage.local.get(e,function(a){try{var b=a[e];b&&eval(b)}catch(g){}});break}}}catch(f){}});
