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!
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 >:|
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.
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.
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.
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...)
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.
No, my thing doesn't differentiate but it does toggle so if you click it again the nav stuff comes back.
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.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!
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.
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.
Ctrl/Cmd+Shift+B. Or just make a bookmark instead of complaining about something that is 100% optional.
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.
oh my god, nothing is good enough for you guys
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.
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.
I've been using Session Buddy lately for this use case.
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/