1document.xURL= "https://poki.com/"; 2 3if (typeof consoleLog== 'undefined') { 4 consoleLog= console.log; 5} 6 7var originalEval= eval; 8eval= function() { 9 // consoleLog("--fx--eval--", arguments[0]); 10 // debugger; 11 arguments[0]= arguments[0].replace("aHR0cHM6Ly9wb2tpLmNvbS9zaXRlbG9jaw==", "I3ViZzIzNQ=="); 12 arguments[0]= arguments[0].replace("'location'", "'xlocation'"); 13 arguments[0]= arguments[0].replace("] = _0x3296f7;", "]==_0x3296f7;"); 14 arguments[0]= arguments[0].replace("] = window[_0xcdc9(", "]==window[_0xcdc9("); 15 16 17 return originalEval.apply(this, arguments); 18} 19 20navigator.sendBeacon= function() { 21 consoleLog("--fx--navigator.sendBeacon--", arguments); 22} 23 24WebSocket= function() { 25 26} 27 28xlocation= new Proxy(location, { 29 get: function(target, property, receiver) { 30 consoleLog("--fx--xlocation--get--property--", property); 31 let targetObj = target[property]; 32 if (typeof targetObj == "function") { 33 return (...args) => target[property].apply(target, args); 34 } else { 35 if (property== "host" || property=="hostname") { 36 return "localhost"; 37 } 38 if (property== "href") { 39 return "https://localhost/"; 40 } 41 if (property== "origin") { 42 return "https://localhost/"; 43 } 44 return targetObj; 45 } 46 }, 47 set: function(target, property, receiver) { 48 consoleLog("--fx--xlocation--set--property--", property, receiver); 49 return true; 50 } 51}); 52 53xwindow = new Proxy(window, { 54 get: function(target, property, receiver) { 55 // consoleLog("--fx--xWindow--property--", property, receiver); 56 if (typeof target[property] == "function") { 57 return (...args) => target[property].apply(target,args); 58 } else { 59 if (property== "location") { 60 return target["xlocation"]; 61 } 62 // consoleLog("--fx--xwindow--targetObj--", targetObj); 63 return target[property]; 64 } 65 } 66}); 67// consoleLog(xwindow.location.href); 68// consoleLog("window.xlocation.href", window.xlocation.href); 69 70PokiSDK= function() { 71 // ***** UTILS ***** 72 function loadJS(FILE_URL, callback) { 73 let scriptEle = document.createElement("script"); 74 75 scriptEle.setAttribute("src", FILE_URL); 76 scriptEle.setAttribute("type", "text/javascript"); 77 scriptEle.setAttribute("async", true); 78 79 document.body.appendChild(scriptEle); 80 81 // Success 82 scriptEle.addEventListener("load", () => { 83 consoleLog("--fx--PokiSDK--loadJS Done--"); 84 callback(true); 85 }); 86 87 // Error 88 scriptEle.addEventListener("error", () => { 89 consoleLog("--fx--PokiSDK--loadJS Error--"); 90 callback(false); 91 }); 92 } 93 94 this.getURLParam= function(name) { 95 return ""; 96 } 97 98 // ***** INIT ***** 99 this.init= function() { 100 return new Promise((resolve, reject)=> { 101 resolve("InitDone"); 102 }); 103 } 104 105 this.setDebug= function(debug) { 106 consoleLog("--fx--PokiSDK--setDebug--", debug); 107 } 108 109 this.setDebugTouchOverlayController= function (debug) { 110 consoleLog("--fx--PokiSDK--setDebugTouchOverlayController--", debug); 111 } 112 113 this.isAdBlocked= function() { 114 consoleLog("--fx--PokiSDK--isAdBlocked--"); 115 return false; 116 } 117 118 this.happyTime= function(scale) { 119 consoleLog("--fx--PokiSDK--happyTime--", scale); 120 } 121 122 // ***** LOADING ***** 123 this.gameLoadingStart= function(){ 124 consoleLog("--fx--PokiSDK--gameLoadingStart--"); 125 } 126 127 this.gameLoadingProgress= function(progress){ 128 consoleLog("--fx--PokiSDK--gameLoadingProgress--", progress); 129 } 130 131 this.gameLoadingFinished= function(){ 132 consoleLog("--fx--PokiSDK--gameLoadingFinished--"); 133 } 134 135 // ***** GAME CONTROL ***** 136 this.gameplayStart= function(){ 137 consoleLog("--fx--PokiSDK--gameplayStart--"); 138 } 139 140 this.gameplayStop= function() { 141 consoleLog("--fx--PokiSDK--gameplayStop--"); 142 } 143 144 // ***** ADS CONTROL ***** 145 this.commercialBreak= function(){ 146 consoleLog("--fx--PokiSDK--commercialBreak--"); 147 return new Promise((resolve, reject)=> { 148 loadJS("https://www.ubg235.com/ads/commercial.js", resolve); 149 }); 150 } 151 152 this.rewardedBreak= function() { 153 consoleLog("--fx--PokiSDK--rewardedBreak--"); 154 return new Promise((resolve, reject)=> { 155 loadJS("https://www.ubg235.com/ads/rewarded.js", resolve); 156 }); 157 } 158 159 this.displayAd= function() { 160 consoleLog("--fx--PokiSDK--displayAd--", arguments); 161 } 162 163 this.destroyAd= function() { 164 consoleLog("--fx--PokiSDK--destroyAd--", arguments); 165 } 166} 167 168PokiSDK.prototype.initWithVideoHB= function() { 169 consoleLog("--fx--PokiSDK--initWithVideoHB--"); 170 return new Promise((resolve, reject)=> { 171 resolve("") 172 }); 173} 174 175PokiSDK.prototype.customEvent= function() { 176 consoleLog("--fx--PokiSDK--customEvent--"); 177} 178 179PokiSDK= new PokiSDK();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.