* [edbrowse-dev] ugliest code ever
@ 2019-09-09 10:16 Karl Dahlke
2019-09-10 0:29 ` Kevin Carhart
0 siblings, 1 reply; 2+ messages in thread
From: Karl Dahlke @ 2019-09-09 10:16 UTC (permalink / raw)
To: edbrowse-dev
[-- Attachment #1: Type: text/plain, Size: 786 bytes --]
You thought minimized javascript looked like dog vomit - well imagine this.
Minimize the code, then reexpand it using long awkward and pointless variable names.
This is the section I'm trying to debug.
for (var _0x9247e4 = 0, _0x3893d3 = _0x525f46['length']; _0x9247e4 < _0x3893d3; _0x9247e4++) {trace@(a45)
var _0x39f51f = _0x525f46[_0x9247e4];
_0x42817f += '; ' + _0x39f51f;
trace@(a46)var _0x3ec78e = _0x525f46[_0x39f51f];
_0x525f46['push'](_0x3ec78e);
_0x3893d3 = _0x525f46['length'];
if (_0x3ec78e !== !![]) {trace@(a47)
_0x42817f += '=' + _0x3ec78e;
}
}
Karl Dahlke
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [edbrowse-dev] ugliest code ever
2019-09-09 10:16 [edbrowse-dev] ugliest code ever Karl Dahlke
@ 2019-09-10 0:29 ` Kevin Carhart
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Carhart @ 2019-09-10 0:29 UTC (permalink / raw)
To: Edbrowse-dev
Wow, that's appalling. Amazon had a file where the JS keywords themselves
were carved into pieces like ['getE','leme','split','ntsBy']. The
substrings of the keywords did not necessarily occur together. And then
the code itself would use those strings as a call.
(array[43]+array[97])(blah). I don't like to think about it..
On Mon, 9 Sep 2019, Karl Dahlke wrote:
> You thought minimized javascript looked like dog vomit - well imagine this.
> Minimize the code, then reexpand it using long awkward and pointless variable names.
> This is the section I'm trying to debug.
>
> for (var _0x9247e4 = 0, _0x3893d3 = _0x525f46['length']; _0x9247e4 < _0x3893d3; _0x9247e4++) {trace@(a45)
> var _0x39f51f = _0x525f46[_0x9247e4];
> _0x42817f += '; ' + _0x39f51f;
> trace@(a46)var _0x3ec78e = _0x525f46[_0x39f51f];
> _0x525f46['push'](_0x3ec78e);
> _0x3893d3 = _0x525f46['length'];
> if (_0x3ec78e !== !![]) {trace@(a47)
> _0x42817f += '=' + _0x3ec78e;
> }
> }
>
> Karl Dahlke
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-09-10 0:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-09 10:16 [edbrowse-dev] ugliest code ever Karl Dahlke
2019-09-10 0:29 ` Kevin Carhart
edbrowse-dev - development list for edbrowse
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://inbox.vuxu.org/edbrowse-dev
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V1 edbrowse-dev edbrowse-dev/ http://inbox.vuxu.org/edbrowse-dev \
edbrowse-dev@edbrowse.org
public-inbox-index edbrowse-dev
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://inbox.vuxu.org/vuxu.archive.edbrowse.dev
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git