From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out.smtp-auth.no-ip.com (smtp-auth.no-ip.com [8.23.224.60]) by hurricane.the-brannons.com (Postfix) with ESMTPS id AF85777AA1 for ; Mon, 9 Sep 2019 17:29:14 -0700 (PDT) X-No-IP: carhart.net@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from phoenix.carhart.net (unknown [99.57.137.251]) (Authenticated sender: carhart.net@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 5468A278 for ; Mon, 9 Sep 2019 17:29:14 -0700 (PDT) Received: from phoenix.carhart.net (carhart.net [127.0.0.1]) by phoenix.carhart.net (8.15.2/8.15.2) with ESMTP id x8A0TDHJ087913 for ; Mon, 9 Sep 2019 17:29:13 -0700 Received: from localhost (kevin@localhost) by phoenix.carhart.net (8.15.2/8.15.2/Submit) with ESMTP id x8A0TDxw087910 for ; Mon, 9 Sep 2019 17:29:13 -0700 X-Authentication-Warning: phoenix.carhart.net: kevin owned process doing -bs Date: Mon, 9 Sep 2019 17:29:13 -0700 (PDT) From: Kevin Carhart X-X-Sender: kevin@phoenix To: Edbrowse-dev@lists.the-brannons.com Subject: Re: [edbrowse-dev] ugliest code ever In-Reply-To: <20190809061628.eklhad@comcast.net> Message-ID: References: <20190809061628.eklhad@comcast.net> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed 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 >