Skip to content

Instantly share code, notes, and snippets.

@negativo
Created April 6, 2016 21:59
Show Gist options
  • Save negativo/32e1062505657cbbad1f4fe533ceefcf to your computer and use it in GitHub Desktop.
Save negativo/32e1062505657cbbad1f4fe533ceefcf to your computer and use it in GitHub Desktop.
(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]);
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment