Skip to content

Instantly share code, notes, and snippets.

@dacto
dacto / kill-sticky.js
Last active July 23, 2022 21:03 — forked from alisdair/kill-sticky.js
Kill sticky headers.
(function () {
var i, elements = document.querySelectorAll('body *');
for (i = 0; i < elements.length; i++) {
if (["sticky", "fixed"].includes(getComputedStyle(elements[i]).position)) {
elements[i].parentNode.removeChild(elements[i]);
}
}
})();