Created
August 7, 2021 19:26
-
-
Save jmdejong/f027668377f16cd5c7aff78b5dc0c59f to your computer and use it in GitHub Desktop.
Remove sticky elements on a webpage
This file contains hidden or 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
| javascript:(function()%7B(function%20()%20%7Bvar%20i%2C%20elements%20%3D%20document.querySelectorAll(%27body%20*%27)%3Bfor%20(i%20%3D%200%3B%20i%20%3C%20elements.length%3B%20i%2B%2B)%20%7Blet%20style%20%3D%20getComputedStyle(elements%5Bi%5D)%3B%20if%20(style.position%20%3D%3D%3D%20%27fixed%27%20%7C%7C%20style.position%20%3D%3D%3D%20%27sticky%27)%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