aemkei / jsfuck

Write any JavaScript with 6 Characters: []()!+
jsfuck.com
Do What The F*ck You Want To Public License
8.12k stars 672 forks source link

Loading jsfuck causes problems with webpages ,May cause the page to be stuck for 5 seconds #80

Open masx200 opened 5 years ago

masx200 commented 5 years ago

加载jsfuck导致网页卡顿的问题 Loading jsfuck causes problems with webpages

可能导致网页卡顿5秒 May cause the page to be stuck for 5 seconds

Execute the following initialization code when the first load is made, causing problems with webpages.

  Modified to execute these initialization code after calling jsfuck's encode method

把原本的第一次加载就执行以下初始化代码,导致网页卡顿的问题

fillMissingDigits(); fillMissingChars(); replaceMap(); replaceStrings(); 修改成在调用jsfuck的encode方法之后再执行这些初始化代码

var haveinit=0 function encode(input, wrapWithEval) {

if(haveinit===0){ fillMissingDigits(); fillMissingChars(); replaceMap(); replaceStrings(); haveinit=1 }

//..................................... }

masx200 commented 5 years ago

https://github.com/masx200/JSfuck-and-hieroglyphy-Decoder-and-ENCODER