Skip to content

Instantly share code, notes, and snippets.

@rux
Created June 26, 2019 09:42
Show Gist options
  • Save rux/26b2e3f76e3e6e74f273f0675f344af4 to your computer and use it in GitHub Desktop.
Save rux/26b2e3f76e3e6e74f273f0675f344af4 to your computer and use it in GitHub Desktop.
Firefox bookmark to remove evil fixed overlays for permissions or newsletter signups
javascript:void([].forEach.call(document.querySelectorAll('body%20*'),e=>/fixed|sticky/.test(getComputedStyle(e).position)&&e.parentNode.removeChild(e))); void(document.getElementsByTagName('html')[0].style.overflow='auto'); void(document.getElementsByTagName('body')[0].style.overflow='auto')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment