Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
masx200 opened this issue May 14, 2019 · 1 comment

Comments

@masx200
Copy link

masx200 commented May 14, 2019

加载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
Copy link
Author

masx200 commented May 14, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant