popup.js 3.6 KB

1
  1. const _0x52f9=['hidden','shift','webview','useWebTitle','#navBar','prev','path','url','#devtools','load','use\x20strict','style','utf-8','unload','navBar','__esModule','./popup.css','#home','devtools','addEventListener','openDevTools','methods','#refresh','goBack','template','refresh','canClose','ready','src','defineProperty','click','title','#webview','readFileSync','close'];(function(_0x4bb25a,_0x42cd3c){const _0x52f90=function(_0x5c200b){while(--_0x5c200b){_0x4bb25a['push'](_0x4bb25a['shift']());}};_0x52f90(++_0x42cd3c);}(_0x52f9,0xaf));const _0x5c20=function(_0x4bb25a,_0x42cd3c){_0x4bb25a=_0x4bb25a-0x77;let _0x52f90=_0x52f9[_0x4bb25a];return _0x52f90;};const _0x4e95d0=_0x5c20,_0x269f=[_0x4e95d0(0x97),'home',_0x4e95d0(0x98),_0x4e95d0(0x8d),'addEventListener','#next',_0x4e95d0(0x7f),'dom-ready',_0x4e95d0(0x93),'#prev','join',_0x4e95d0(0x95),_0x4e95d0(0x83),_0x4e95d0(0x89),'reload',_0x4e95d0(0x84),_0x4e95d0(0x8b),_0x4e95d0(0x99),_0x4e95d0(0x85),_0x4e95d0(0x7d),_0x4e95d0(0x91),_0x4e95d0(0x7e),_0x4e95d0(0x7b),_0x4e95d0(0x96),_0x4e95d0(0x8c),_0x4e95d0(0x92),'./popup.html',_0x4e95d0(0x77),_0x4e95d0(0x94),_0x4e95d0(0x79),_0x4e95d0(0x80),_0x4e95d0(0x87),'getTitle',_0x4e95d0(0x82),_0x4e95d0(0x7a),_0x4e95d0(0x8f),_0x4e95d0(0x88),_0x4e95d0(0x86)];(function(_0x47a6b9,_0x1b6391){const _0x279642=function(_0x579419){const _0x960a9e=_0x5c20;while(--_0x579419){_0x47a6b9['push'](_0x47a6b9[_0x960a9e(0x78)]());}};_0x279642(++_0x1b6391);}(_0x269f,0x1ba));const _0x2558=function(_0x1d1c9b,_0x5211bd){_0x1d1c9b=_0x1d1c9b-0x6c;let _0x26f6ee=_0x269f[_0x1d1c9b];return _0x26f6ee;},_0x37d6a=_0x2558;_0x4e95d0(0x81),(Object[_0x37d6a(0x70)](exports,_0x37d6a(0x79),{'value':!0x0}),exports[_0x37d6a(0x8b)]=exports[_0x37d6a(0x8e)]=exports[_0x4e95d0(0x92)]=exports[_0x37d6a(0x89)]=exports[_0x37d6a(0x72)]=exports[_0x37d6a(0x6c)]=exports['$']=exports[_0x37d6a(0x75)]=exports[_0x37d6a(0x77)]=void 0x0);const fs_1=require('fs'),path_1=require(_0x37d6a(0x8d));let ccService=null,readFile=(..._0x4db2f0)=>fs_1[_0x37d6a(0x7c)](path_1[_0x37d6a(0x84)](..._0x4db2f0),_0x37d6a(0x86));async function load(_0x4b0c92){ccService=_0x4b0c92;}async function unload(){}function ready(_0x3eca26={'url':'','navBar':!0x1,'title':'','useWebTitle':!0x1}){const _0x519630=_0x4e95d0,_0x4aa52c=_0x37d6a;_0x3eca26[_0x4aa52c(0x76)]?this['$'][_0x4aa52c(0x71)]['addEventListener'](_0x4aa52c(0x81),()=>document[_0x4aa52c(0x91)]=this['$'][_0x519630(0x79)][_0x4aa52c(0x74)]()):document[_0x4aa52c(0x91)]=_0x3eca26[_0x519630(0x96)],this['$'][_0x4aa52c(0x8c)][_0x4aa52c(0x6f)]=!_0x3eca26[_0x4aa52c(0x8c)],this['$'][_0x4aa52c(0x71)][_0x4aa52c(0x82)]=_0x3eca26[_0x519630(0x7e)],this['$'][_0x519630(0x7c)][_0x519630(0x8a)](_0x4aa52c(0x85),()=>this['$'][_0x4aa52c(0x71)][_0x519630(0x8e)]()),this['$']['next'][_0x519630(0x8a)](_0x4aa52c(0x85),()=>this['$'][_0x4aa52c(0x71)]['goForward']()),this['$'][_0x519630(0x90)][_0x4aa52c(0x7e)](_0x4aa52c(0x85),()=>this['$'][_0x4aa52c(0x71)][_0x4aa52c(0x88)]()),this['$'][_0x4aa52c(0x7b)][_0x4aa52c(0x7e)](_0x4aa52c(0x85),()=>this['$'][_0x4aa52c(0x71)][_0x4aa52c(0x82)]=_0x3eca26[_0x4aa52c(0x8f)]),this['$'][_0x4aa52c(0x87)][_0x4aa52c(0x7e)](_0x4aa52c(0x85),()=>this['$'][_0x519630(0x79)][_0x4aa52c(0x8a)]());}function canClose(){return!0x0;}function close(){}exports[_0x37d6a(0x77)]=readFile(__dirname,_0x37d6a(0x6e)),exports['style']=readFile(__dirname,_0x37d6a(0x73)),exports['$']={'webview':_0x37d6a(0x7a),'navBar':_0x37d6a(0x90),'prev':_0x37d6a(0x83),'next':_0x37d6a(0x7f),'refresh':_0x37d6a(0x7d),'home':_0x37d6a(0x78),'devtools':_0x37d6a(0x80)},exports[_0x4e95d0(0x8c)]={},exports['load']=load,exports[_0x37d6a(0x89)]=unload,exports[_0x37d6a(0x6d)]=ready,exports[_0x37d6a(0x8e)]=canClose,exports[_0x37d6a(0x8b)]=close;