News for hackers. Stuff that matters.
Re:Show HN: Make Medium Readable Again by alekratz on Tuesday August 29, 2017 @09:12AM (#15123993)
Makes me think of Kill Sticky [0], a small Javascript thing that attempts to remove all sticky headers on a page.

But really, any sort of thing that blocks, as the Github README says, "annoying, user-hostile software", is a good piece of software in my book.

[0] https://alisdair.mcdiarmid.org/kill-sticky-headers/

Re:Show HN: Make Medium Readable Again by frgtpsswrdlame on Tuesday August 29, 2017 @09:37AM (#15124149)
Yes, I use Kill Sticky and also this bookmarklet to clean up a lot of the cruft I come across. It's not a perfect system but it works more than it doesn't.

  javascript:var%20frames%20%3D%20document.getElementsByTagName%28%22iframe%22%29%3Bfor%20%28%3Bframes.length%3B%29%20%7Bframes%5Bframes.length-1%5D.parentNode.removeChild%28frames%5Bframes.length-1%5D%29%3B%7Dvoid%280%29
Re:Show HN: Make Medium Readable Again by danhardman on Tuesday August 29, 2017 @09:59AM (#15124293)
What're the benefits of removing iFrames over using an adblocker like uBlock? Seems like global iFrame genocide would hurt your user experience more. They're not all ads!
Re:Show HN: Make Medium Readable Again by chias on Tuesday August 29, 2017 @02:24PM (#15126460)
This is a bookmarklet, not an extension, so you only activate it when you need it. To answer your actual question: autoplay videos that follow you when you scroll >:|
Re:Show HN: Make Medium Readable Again by komali2 on Tuesday August 29, 2017 @05:50PM (#15127899)
uBlock origin allows me to select elements and add them to a universal blacklist. Slowly but surely I am defeating all news websites auto-play videos.
Re:Show HN: Make Medium Readable Again by kevin_thibedeau on Tuesday August 29, 2017 @08:37PM (#15128808)
> Slowly but surely I am defeating all news websites auto-play videos.

Firefox has an about:config setting that kills them all.

Re:Show HN: Make Medium Readable Again by 333c on Wednesday August 30, 2017 @02:19AM (#15130046)
Kind of random comment, but thank you! I switched to Firefox from Chrome a few weeks ago, and one of my major annoyances was that Firefox would play Youtube videos opened in background tabs, even before the tab ever got focus. Seeing your comment gave me the idea to search about:config for a setting related to autoplay, and I found a setting that enables my preferred behavior.

So, thanks!

Re:Show HN: Make Medium Readable Again by frgtpsswrdlame on Tuesday August 29, 2017 @11:44AM (#15125048)
I work at a bank and not on the tech side so I'm restricted to IE 11 with no addons. iFrame genocide is as close to uBlock as I can get while working. At home of course it's ghostery and uBlock.
Re:Show HN: Make Medium Readable Again by kuschku on Tuesday August 29, 2017 @09:33AM (#15124124)
Interestingly, this doesn’t kill all sticky headers.

In fact, there’s a special CSS position for sticky headers: position: sticky.

Which this doesn’t kill.

Re:Show HN: Make Medium Readable Again by tim333 on Tuesday August 29, 2017 @11:38AM (#15124988)
I made an extention doing the same thing and added an == 'fixed' || === 'sticky' recently. It's an ongoing battle. I still haven't figured returning google news to a decent look. (https://chrome.google.com/webstore/detail/zapfixed/jgiflpbko...)
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.
Re:Show HN: Make Medium Readable Again by iwalton3 on Tuesday August 29, 2017 @10:21AM (#15124439)
You can also have this happen automatically when you scroll, and then get the headers back when you scroll up. https://iwalton.com/wiki/#NoFixed
Re:Show HN: Make Medium Readable Again by oddlyaromatic on Tuesday August 29, 2017 @12:42PM (#15125548)
I find most implementations of this jumpy and distracting - just too eager. Often I'm scrolling up to reread the top line of text. Then the bar pops up and blocks my text, it is daft!
Re:Show HN: Make Medium Readable Again by ronjouch on Tuesday August 29, 2017 @11:27AM (#15124905)
Awesome, thanks! Trying it; I've been thinking of building something similar for a few weeks. Site-specific (like the Medium addon we're discussing here, or domain-based userContent.css) solutions suck, I want something generic (like the bookmarklet) and automatic (thus the "tradeoff" of popping the dickbars on under certain conditions, like you did when scrolling up).

Ever thought of packaging this as a Firefox/Chrome (WebExtensions) addon? Want to collaborate on one? Or if you don't care, are you okay for me to start one from your userscript?

Re:Show HN: Make Medium Readable Again by vincentriemer on Tuesday August 29, 2017 @09:49PM (#15129127)
Heh this would just completely break one of my current projects (not using `fixed` for headers I swear). It's interesting to think about people out there using things like this.
Re:Show HN: Make Medium Readable Again by OverThere on Tuesday August 29, 2017 @09:47AM (#15124207)
This is pretty sweet. Thanks for sharing.
Re:Show HN: Make Medium Readable Again by virtualized on Tuesday August 29, 2017 @09:18AM (#15124023)
What the hell is a "bookmark bar"? That's the first thing that goes away when I configure a browser. It's like a permanent sticky header.
Re:Show HN: Make Medium Readable Again by jaquers on Tuesday August 29, 2017 @09:23AM (#15124058)
Ctrl/Cmd+Shift+B. Or just make a bookmark instead of complaining about something that is 100% optional.
Re:Show HN: Make Medium Readable Again by striking on Tuesday August 29, 2017 @11:30AM (#15124926)
With liberal use of a certain keyboard shortcut, it's transformed into a tool for strategic deployment of JS bookmarklets. It's kind of nice actually.
Re:Show HN: Make Medium Readable Again by alekratz on Tuesday August 29, 2017 @09:52AM (#15124243)
oh my god, nothing is good enough for you guys
Re:Show HN: Make Medium Readable Again by KGIII on Tuesday August 29, 2017 @01:44PM (#15126122)
You asked what it is, and then asserted it was a priority for you. Which is it?
Re:Show HN: Make Medium Readable Again by flyinghamster on Tuesday August 29, 2017 @09:56AM (#15124268)
I put folders of bookmarks there, rather than keeping dozens of tabs open.
Re:Show HN: Make Medium Readable Again by DiThi on Tuesday August 29, 2017 @02:09PM (#15126331)
For the most frequently used links, I have them outside folders but rename them to 1-4 letters or none if the icon is distinct enough.
Re:Show HN: Make Medium Readable Again by tedmiston on Tuesday August 29, 2017 @04:03PM (#15127185)
I've been using Session Buddy lately for this use case.
Re:Show HN: Make Medium Readable Again by arcbyte on Tuesday August 29, 2017 @09:22AM (#15124051)
I have been this way for a long time as well, but I've started finding little uses for it. I think I will end up using it more.