Re:The Long-Lost Tarzan Atari Game, Preserved
by ChocMontePy on Wednesday June 05, 2024 @04:37PM
(#40590283)
The header on that website that stays there as you scroll is obnoxiously annoying. It takes up 25% of the page on desktop.
[ Parent
| on HN ]
Re:The Long-Lost Tarzan Atari Game, Preserved
by pwg on Wednesday June 05, 2024 @04:45PM
(#40590389)
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]);}}})();