Skip to content

jdfreder/getUserDefinedGlobals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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; }));
})();

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published