6 ms·
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
by alekratz 9y ago
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/ https://alisdair.mcdiarmid.org/kill-sticky-headers/
- OverThere 9y agoThis is pretty sweet. Thanks for sharing.
- kuschku 9y agoInterestingly, 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.
- tim333 9y agoI 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/jgiflpbkoefoepgmeifoglafkomgjbge https://chrome.google.com/webstore/detail/zapfixed/jgiflpbko...)
- nickjj 9y agoDo 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.
- tim333 9y agoNo, my thing doesn't differentiate but it does toggle so if you click it again the nav stuff comes back.
- tim333 9y agoThe 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.
- frgtpsswrdlame 9y agoYes, 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
- danhardman 9y agoWhat'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!
- frgtpsswrdlame 9y agoI 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.
- chias 9y agoThis 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 >:|
- komali2 9y agouBlock 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.
- kevin_thibedeau 9y ago> Slowly but surely I am defeating all news websites auto-play videos. Firefox has an about:config setting that kills them all.
- virtualized 9y agoWhat 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.
- arcbyte 9y agoI 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.
- jaquers 9y agoCtrl/Cmd+Shift+B. Or just make a bookmark instead of complaining about something that is 100% optional.
- alekratz 9y agooh my god, nothing is good enough for you guys
- flyinghamster 9y agoI put folders of bookmarks there, rather than keeping dozens of tabs open.
- striking 9y agoWith 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.
- KGIII 9y ago
- iwalton3 9y agoYou can also have this happen automatically when you scroll, and then get the headers back when you scroll up. https://iwalton.com/wiki/#NoFixed https://iwalton.com/wiki/#NoFixed
- deleted 9y ago[deleted]
- ronjouch 9y agoAwesome, 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?
- oddlyaromatic 9y agoI 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!
- vincentriemer 9y agoHeh 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.