Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 577 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 577 Bytes

getUserDefinedGlobals

Web browser JavaScript snippet that allows you to list all user defined globals.

Released under the MIT license.

Use

Dump this into your JS console while on the website of interest:

(function() {
    var i = document.createElement('iframe'); i.style.display = 'none'; document.body.appendChild(i);
    var b = Object.getOwnPropertyNames(i.contentWindow); b.push('getUserDefinedGlobals');
    document.body.removeChild(i);
    console.info(Object.getOwnPropertyNames(window).filter(function(x) { return b.indexOf(x) === -1; }));
})();