Created
October 13, 2017 13:07
-
-
Save andrhamm/37e7d9df8e3c64e79142dcecf92c3c0f to your computer and use it in GitHub Desktop.
Kill Sticky Header (Bookmarklet)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Found this bookmarklet on a blog post somewhere and it is awesome. | |
// Save to bookmark bar and click to kill any annoying floating headers that take up you vertical resolution | |
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%3C%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)() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment