Re:Track down the JavaScript code responsible for polluting ...
by TekMol on Thursday February 17, 2022 @01:00AM
(#30370009)
I often want to do the opposite: I know that the value "HelloWorld123" ends up somewhere in a variable in the global scope. Probably in some variable, nested deep deep down in got knows what. And I want to find it. Is there a good way to go about this?
[ Parent
| on HN ]
Re:Track down the JavaScript code responsible for polluting ...
by mmazzarolo on Thursday February 17, 2022 @02:36AM
(#30370476)
If you don't know the global names, I would probably do something like this:
1. Grab the name of all globals your JS code is creating (using https://mmazzarolo.com/blog/2022-02-14-find-what-javascript-...).
2. Inspect all of them with the technique used in the article and update the inspection logic so that it checks does a deep check of the value "HelloWorld123" as well (the value can be accessed here: https://gist.github.com/mmazzarolo/2b325f3af2bc83f56d3c921ff...)