Skip to content

Instantly share code, notes, and snippets.

@alisdair
Created May 29, 2013 13:43
Show Gist options
  • Star 38 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save alisdair/5670341 to your computer and use it in GitHub Desktop.
Save alisdair/5670341 to your computer and use it in GitHub Desktop.
Kill sticky headers.
(function () {
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]);
}
}
})();
@nbeaver
Copy link

nbeaver commented Jul 2, 2019

@tejasanilshah
Copy link

tejasanilshah commented Jul 27, 2020

Loved the sticky header on the new site. Loved killing it even more.
Thanks for this!

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