2021-12-28 ================================================================= (1) CSSStyleSheet.insertRule()のオーバーライド対策 tests/function-overwrite/ ------------------------------------------------------- unobfus.js ------------------------------------------------------- //@@ if insertRule was a fake then exit //@@ except IE because we can't detect a fake in IE if("currentScript" in thisdoc){ if('prototype' in CSSStyleSheet.prototype.insertRule){ return; } } ------------------------------------------------------- ================================================================= (2) try{Function(code)();}catch(e){}でSyntax ErrorをSuppressする。 tests/modifying-code/ ------------------------------------------------------- jsloader.js ------------------------------------------------------- try{winfunc(thiswindow)(evalfunc()([unobfus_code.replace("+p%p",emptystr).replace("-p%q",emptystr)],''))();}catch(e){} ------------------------------------------------------- =================================================================