Skip to content

Instantly share code, notes, and snippets.

@nkpz
Created February 10, 2016 21:38
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 nkpz/ee0923062981cd386ee6 to your computer and use it in GitHub Desktop.
Save nkpz/ee0923062981cd386ee6 to your computer and use it in GitHub Desktop.
javascript:console.log(function(){var a=document.createElement("iframe");a.style.display="none";document.body.appendChild(a);var c=a.contentWindow;document.body.removeChild(a);var a=Object.create(null),b;for(b in window)b in c||(a[b]=window[b]);return a}())
@nkpz
Copy link
Author

nkpz commented Feb 10, 2016

Detects non-native global variables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment