4 ms·
Or, on a purely ad hoc basis, McDiarmid's "Kill Sticky Headers" (https://alisdair.mcdiarmid.org/kill-sticky-headers https://alisdair.mcdiarmid.org/kill-sticky-h
by JadeNB 7y ago
Or, on a purely ad hoc basis, McDiarmid's "Kill Sticky Headers" (https://alisdair.mcdiarmid.org/kill-sticky-headers https://alisdair.mcdiarmid.org/kill-sticky-headers).
- kissgyorgy 7y agoWow, this makes Medium almost readable! Thanks!
- nostalgk 7y agoUgh, Medium is the only site I've had to consistently break out the "Block Element" button with. I don't even mind ads and I'm happy to leave them on sites that I want to support, but Medium is an ugly beast with all of the headers and footers. I still frequent it for work, there's lots of great stories, but it's almost insufferable.
- ddebernardy 7y agoSlightly 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.
- taejo 7y agoI use the extension "Hide Fixed Elements" which is similar.