3 ms·
Slightly better implementation: javascript:(function(){(function(){var%20i,elements=document.querySelectorAll('body%20*');for(i=0;i<elements.length;i++){va
by ddebernardy 7y ago
Slightly better implementation:
javascript:(function(){(function(){var%20i,elements=document.querySelectorAll('body%20*');for(i=0;i<elements.length;i++){var%20p=getComputedStyle(elements[i]).position;if(p==='fixed'||p==='sticky'||p==='-webkit-sticky'){elements[i].parentNode.removeChild(elements[i]);}}})()})()
It's basically the same but it also catches `sticky` and `-webkit-sticky`, which some sites use instead of `fixed`.
- JadeNB 7y agoThank you! Indeed McDiarmid's implementation is so nearly reliable that I find myself confused and stymied when it doesn't work. I'll substitute yours and hopefully avoid confusion and stymied-ness.