News for hackers. Stuff that matters.
Re:Show HN: Make Medium Readable Again by nickjj on Tuesday August 29, 2017 @07:04PM (#15128338)
Do you somehow differentiate sticky headers from sidebars?

For example my personal site uses a sticky sidebar for primary navigation and if you hide it, you won't be able to browse anything.

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.
Re:Show HN: Make Medium Readable Again by tim333 on Wednesday August 30, 2017 @05:31AM (#15130796)
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.