Skip to content

Instantly share code, notes, and snippets.

@alisdair
alisdair / kill-sticky.js
Created May 29, 2013
Kill sticky headers.
View kill-sticky.js
(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]);
}
}
})();