ben-sb / javascript-deobfuscator

General purpose JavaScript deobfuscator
https://deobfuscate.io
Apache License 2.0
747 stars 106 forks source link

Replace comma expressions by semicolons #60

Open Zezombye opened 3 weeks ago

Zezombye commented 3 weeks ago

For example:

var i, n, r, Ya;
(Ya = [2, 0]), (r = e.length), (n = r << Ya[0]);

Should become:

var i, n, r, Ya;
Ya = [2, 0];
r = e.length;
n = r << Ya[0];

Or ideally:

var i;
var Ya = [2, 0];
var r = e.length;
var n = r << Ya[0];
ben-sb commented 3 weeks ago

That's a good suggestion, I'll add it to the to-do list. In the meantime my other deobfuscator (online version) already has this feature implemented.