top | item 40590283

(no title)

ChocMontePy | 1 year ago

The header on that website that stays there as you scroll is obnoxiously annoying. It takes up 25% of the page on desktop.

discuss

order

pwg|1 year ago

This javascript below, in the URL field of a bookmark, will delete the sticky header when you hit the bookmark:

javascript:(function%20()%20{var%20i,elements=document.querySelectorAll('body%20*');%20for%20(i=0;i<elements.length;i++)%20{if%20(getComputedStyle(elements[i]).position==='fixed'%20||%20getComputedStyle(elements[i]).position==='sticky')%20{elements[i].parentNode.removeChild(elements[i]);}}})();