function getSelectedText(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection():document.selection?document.selection.createRange().text:void 0}function inject(){if(console.log("window",window),null!=document.getElementById("sm-offer-list")){let e=[],t=document.getElementById("sm-offer-list").childNodes;for(let n=0;n<t.length;n++){let o=t[n].childNodes;for(let t=0;t<o.length;t++){let n=o[t].children,l={};for(let e=0;e<n.length;e++){if("mojar-element-title"==n[e].className&&(l.title=n[e].innerText),"mojar-element-price"==n[e].className){let t=n[e].children;for(let e=0;e<t.length;e++)"showPricec"==t[e].className&&(l.price=t[e].innerText),"sale"==t[e].className&&(l.commentCount=t[e].innerText)}"mojar-element-company"==n[e].className&&(l["sold"]=n[e].innerText)}"{}"!==JSON.stringify(e)&&e.push(l)}}console.log("data",e),top.postMessage(e,"*")}if(null!=document.getElementById("myframe")){let e=document.getElementsByClassName("ssd-module-wrap")[0];console.log("nodes",e)}null!=document.querySelector('[id="sucai-tu-selector"]')&&console.log("11111111",document.querySelector('[id="sucai-tu-selector"]'))}console.log("inject.js"),window.onload=function(){console.log("inject inject")},inject();