2 lines
2.7 KiB
JavaScript
2 lines
2.7 KiB
JavaScript
(()=>{function p(e,a,r,t){Object.defineProperty(e,a,{get:r,set:t,enumerable:!0,configurable:!0})}function h(e){return e&&e.__esModule?e.default:e}var v=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{},u={},l={},s=v.parcelRequireae38;s==null&&(s=function(e){if(e in u)return u[e].exports;if(e in l){var a=l[e];delete l[e];var r={id:e,exports:{}};return u[e]=r,a.call(r.exports,r,r.exports),r.exports}var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t},s.register=function(a,r){l[a]=r},v.parcelRequireae38=s),s.register("i4W0w",function(e,a){p(e.exports,"register",()=>r,n=>r=n),p(e.exports,"resolve",()=>t,n=>t=n);var r,t,i={};function f(n){for(var c=Object.keys(n),$=0;$<c.length;$++)i[c[$]]=n[c[$]]}function b(n){var c=i[n];if(c==null)throw new Error("Could not resolve bundle with id "+n);return c}r=f,t=b}),s.register("2H2Rn",function(e,a){p(e.exports,"getBundleURL",()=>r,o=>r=o);var r,t,i,f={};function b(o){var d=f[o];return d||(d=n(),f[o]=d),d}function n(){try{throw new Error}catch(d){var o=(""+d.stack).match(/(https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/[^)\n]+/g);if(o)return c(o[2])}return"/"}function c(o){return(""+o).replace(/^((?:https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/.+)\/[^/]+$/,"$1")+"/"}function $(o){var d=(""+o).match(/(https?|file|ftp|(chrome|moz|safari-web)-extension):\/\/[^/]+/);if(!d)throw new Error("Origin not found");return d[0]}r=b,t=c,i=$});var y={};s("i4W0w").register(JSON.parse('{"iJymU":"background.5fadff2f.js","1vz8F":"content.c45fb05d.js"}'));var m=async(e,a)=>{const r=chrome.runtime.getManifest();a.send(r)},w=async(e,a)=>{const r="http://192.168.31.245:8080?a=1";console.log("getmessage");const t={"Content-Type":"application/json"},i={id:e.body.id},f=await fetch(r,{method:"POST",headers:t,body:JSON.stringify(i)});a.send({message:"1112"})},x=async(e,a)=>{console.log(e),a.send({message:"Hello from port handler"})};globalThis.__plasmoInternalPortMap=new Map,chrome.runtime.onMessage.addListener((e,a,r)=>{switch(e.name){case"get-manifest":m({sender:a,...e},{send:t=>r(t)});break;case"ping":w({sender:a,...e},{send:t=>r(t)});break;default:break}return!0}),chrome.runtime.onConnect.addListener(function(e){globalThis.__plasmoInternalPortMap.set(e.name,e),e.onMessage.addListener(function(a){switch(e.name){case"mail":x({port:e,...a},{send:r=>e.postMessage(r)});break;default:break}})}),console.log("111111ous time. Now will never come again.");const R=fetch("http://192.168.31.245:8080?a=1",{method:"GET"});var g={};g=s("2H2Rn").getBundleURL("iJymU")+s("i4W0w").resolve("1vz8F"),chrome.scripting.registerContentScripts([{id:"staticContent",js:[h(g).split("/").pop().split("?")[0]],matches:["https://product.dangdang.com/*"],world:"MAIN"}])})();
|