Skip to content

Instantly share code, notes, and snippets.

@haya14busa
Created November 11, 2013 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haya14busa/7413992 to your computer and use it in GitHub Desktop.
Save haya14busa/7413992 to your computer and use it in GitHub Desktop.
// https://gist.github.com/nulltask/7412711#file-index-js
javascript:(function() {
var leak = [];
var iframe = document.createElement('iframe');
iframe.style = 'display: none;';
document.body.appendChild(iframe);
var window = iframe.contentWindow;
for (var p in this) {
if (void 0 === window[p]) leak.push(p);
}
document.body.removeChild(iframe);
alert(leak);
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment