8000 GitHub - sindresorhus/log-globals: Logs your global variables to the console - Bookmarklet / DevTools snippet
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Logs your global variables to the console - Bookmarklet / DevTools snippet

License

Notifications You must be signed in to change notification settings

sindresorhus/log-globals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

log-globals

Logs your global variables to the console

Useful for finding leaked global variables.

screenshot

Getting started

Can be used as a bookmarklet or a DevTools snippet.

Bookmarklet

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

License

MIT © Sindre Sorhus

About

Logs your global variables to the console - Bookmarklet / DevTools snippet

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0