Skip to content

Instantly share code, notes, and snippets.

@ashtonmeuser
Created February 1, 2025 22:10
Show Gist options
  • Save ashtonmeuser/849a972686e1505093c6d4fc5c6e0b1a to your computer and use it in GitHub Desktop.
Save ashtonmeuser/849a972686e1505093c6d4fc5c6e0b1a to your computer and use it in GitHub Desktop.
// bookmarklet-title: Kill Sticky
// See https://alisdair.mcdiarmid.org/kill-sticky-headers/
var i, elements = document.querySelectorAll('body *');
for (i = 0; i < elements.length; i++) {
if (getComputedStyle(elements[i]).position === 'fixed') {
elements[i].parentNode.removeChild(elements[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment