Hacker News new | ask | show | jobs
by ChocMontePy 745 days ago
The header on that website that stays there as you scroll is obnoxiously annoying. It takes up 25% of the page on desktop.
1 comments

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]);}}})();