4 ms·
one thing that i saw on hn a while ago was a bookmarklette to remove all the junk from the page... quite useful and i use it daily typically. basically just rem
by weaksauce 5y ago
one thing that i saw on hn a while ago was a bookmarklette to remove all the junk from the page... quite useful and i use it daily typically. basically just removes any stickied or fixed positioned junk. surprisingly effective.
javascript:( function(){ let i, elements = document.querySelectorAll('body *'); for (i = 0; i < elements.length; i++) { if(getComputedStyle(elements[i]).position === 'fixed' || getComputedStyle(elements[i]).position === 'sticky') { elements[i].parentNode.removeChild(elements[i]); } } document.body.style.overflow = "auto"; document.body.style.position = "static"; })()
that's the bookmarklette i can gist it if someone wants a nicely formatted version but either way it works.