Re:Show HN: Make Medium Readable Again
by tim333 on Tuesday August 29, 2017 @07:20PM
(#15128457)
No, my thing doesn't differentiate but it does toggle so if you click it again the nav stuff comes back.
[ Parent
| on HN ]
The code that does anything in mine is just
$('*').filter(function() {
var pos = $(this).css('position');
return ( pos === 'fixed' || pos === 'sticky')
} ).toggleClass("_zapfix");
where _zapfix is a class where things are hidden and $ is jquery.