Code:
(function(P,V,o,c,n,k,s,x){P=P||'MegaCube.setup';V=V===undefined?true:V;c=0;n=[];try{o=P.split('.').reduce((a,b)=>a&&a[b],window);if(!o||typeof o!='object')return}catch(e){return}for(k in o)if(o.hasOwnProperty(k)&&typeof o[k]=='function'){try{s=o[k].toString()}catch(e){continue}if(/return\s+57\s*;/.test(s)||((/(\w+)\s*=\s*57\s*;/.test(s)&&(new RegExp('return\\s+'+RegExp.$1+'\\s*(?:;|\\|\\||&&)').test(s)||/return\s+k\s*;/.test(s)))||/k\s*=\s*57/.test(s))){try{o[k]=function(){return V};n.push(P+'.'+k);c++}catch(e){}}}if(c>0){console.log(`[P] Patched ${c} in ${P}:`);for(x of n)console.log(` - ${x}`)}})();
although I expect this method to get patched in the future
Last edited: