Skip to content

Instantly share code, notes, and snippets.

@unhammer
Created September 27, 2019 08:52
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 unhammer/681d189c4e97b3168048d22073c204e3 to your computer and use it in GitHub Desktop.
Save unhammer/681d189c4e97b3168048d22073c204e3 to your computer and use it in GitHub Desktop.
Right next to your address bar, make a "New bookmark" with this in, now you can easily remove all those header/footer bars that block your content
javascript:(function()%7B(function%20()%20%7Bvar%20i%2C%20elements%20%3D%20document.querySelectorAll('body%20*')%3Bfor%20(i%20%3D%200%3B%20i%20<%20elements.length%3B%20i%2B%2B)%20%7Bif%20(getComputedStyle(elements%5Bi%5D).position%20%3D%3D%3D%20'fixed')%20%7Belements%5Bi%5D.parentNode.removeChild(elements%5Bi%5D)%3B%7D%7D%7D)()%7D)()
@unhammer
Copy link
Author

unhammer commented Sep 27, 2019

Before

before


After

after

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