Skip to content

Instantly share code, notes, and snippets.

@tripzilch
Last active December 17, 2015 18:49
Show Gist options
  • Save tripzilch/5656025 to your computer and use it in GitHub Desktop.
Save tripzilch/5656025 to your computer and use it in GitHub Desktop.
Bookmarklet for unhinging those pesky position:fixed elements plaguing the web since 2012-13, unwanted "nav" bars taking up your precious vertical screenspace (especially when at 150% zoom on a netbook).Tested for Firefox.
javascript:(function() { var s,e,i,ee=document.getElementsByTagName('*'); for(i=0; e=ee[i]; i++) { s=getComputedStyle(e); if (s && s.position == 'fixed') e.style.position='static'; } })();
/* Bookmarklet for unhinging any pesky position:fixed elements plagueing the web these days.
Tested for Firefox
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment