Skip to content

Instantly share code, notes, and snippets.

@nztim
Created August 16, 2018 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nztim/4af7ec10fe9577d99c7bf5eb852f0dd6 to your computer and use it in GitHub Desktop.
Save nztim/4af7ec10fe9577d99c7bf5eb852f0dd6 to your computer and use it in GitHub Desktop.
javascript:(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]);
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment