My uBlock Origin filters to remove distractions (github.com)
Repository with my filter lists that block some distractions from sites I want to keep using.
I am pretty ruthless removing distractions from my life (e.g. no Instagram, Facebook, TikTok), but some tools I'd like to keep using some parts of it. E.g. Twitter/X, I dislike the feed but I like reading some threads that are shared here or on blog posts. Same for YouTube, I enjoy some videos but I do not want recommendations when I finish the video I was watching.
Feel free to suggest more, open issues, pull requests or send me an email :)
189 comments
[ 3.7 ms ] story [ 92.0 ms ] thread[edit]: https://news.ycombinator.com/item?id=30012904 ("Twitter Rolls Out NFT Profile Pictures")
EDIT should have installed uBlock on the left/default browser for a fair comparison. Oh well, you get the idea :)
After: <http://db48x.net/temp/Screenshot from 2023-09-20 09-14-26.pn...>
That would help far more people that starting up yet another Annoyances list.
1. https://github.com/uBlockOrigin/uAssets
Even if it's nice for people who want just this, I don't think this has its place on the annoyances lists you mentioned.
Annoyances are mainly for things like cookie popup or copy-protection etc. I doubt companies would argue these are their "core features".
Before IT took away all plugins (!) I used uBlock this way, hiding sidebars and leads that weren't conducive to work (eg interesting stuff).
weird decision, I push plugins to lots of my customers (uBlock Origin)
They really like dealing with users and their malware infections I guess. It's the only possible explanation given that uBlock Origin is probably the most effective anti-malware software in existence.
I certainly buy their stance that these are different from what are traditionally on the Annoyances lists.
However if you had a list of usernames to exclude eBay lets you do that in the advanced search.
Really like the click to remove (and build a filter) to aid in this effort.
Removing an extension from my list would be great but it is amazing as is.
Which of course implies that you have to be logged into Google for it to work, doesn't apply to incognito windows, etc.
I have added the rule to the repository
[1] https://github.com/digitalblossom/alternative-frontends [2] https://farside.link
Happy to know someone had the same idea and there are versions of it online. Thanks for letting me know of this, I really appreciate it!
It's in your user config, click your username.
https://browser.kagi.com/
They claim to support Firefox and Chrome extensions (specifically, uBlock Origin). It's in beta. I'm surprised Apple hasn't blocked it yet, but I'd consider paying for a developer account just to install it on my phone (assuming it works).
Also would love to see a similar browser with vertical tabs for Linux/Windows.
[0] https://developer.mozilla.org/en-US/docs/Web/CSS/column-coun...
[late edit]: Here's a minimal example of "column-count:" injected by uBlock (on a website where it sort-of works)—this is what I'm trying to coerce other websites into looking like:
https://i.ibb.co/k3bRwhP/example-1.webp
(I really like the column idea, and I'm working back towards RSS, with a bunch of smart filters, being my primary way of interacting with anything I visit regularly. I never should have given it up).
But often just switching to Reader Mode is the faster and preferable option.
(This isn't always an option, but frequently is.)
is that the one with a bunch of spyware on it? or is that the one that replaced the one with a bunch of spyware on it
Stylus is the good one https://add0n.com/stylus.html
The name similarity means I keep getting them confused. Including repeatedly on HN comments.
And yes, I do know the difference: <https://news.ycombinator.com/item?id=36859978>
It's chrome/userContent.css in the Firefox profile subdirectory, enabled by the about:config flag toolkit.legacyUserProfileCustomizations.stylesheets.
I ended up moving to news feed eradicator. https://chrome.google.com/webstore/detail/news-feed-eradicat...
I let myself use reddit for 5 minutes every morning. It auto blocks the feed when those 5 minutes are up. Every other site I just leave blocked.
You're exaggerating. My userContent.css is 60kB, and although breakages do happen indeed, it's occasional and nowhere near "redo everything every month".
What I will reckon is a pain, are machine-mangled CSS classes (e.g. by packers for React / other frameworks). They are kinda stable, until they're not, and at any rate, their inscrutability makes maintenance more difficult (because .user-profile-picture is human-transparent, while .cD5aZf is not :-/ ).
- Standard CSS (for userContent.css): https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_s...
- uBlock Origin: https://github.com/gorhill/uBlock/wiki/Static-filter-syntax & https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-f...
Still, sometimes it's difficult/impossible to make a reliable filter, and in such cases I'd rather not have it than have a brittle one.
I wonder if you have your filter rules open source or available somewhere. Please share.
1. My rules are not any different from yours. I doubt you'll learn much from them given what you're already doing in your repo.
2. I feel that the "what to hide" / "not to hide" choice is too personal to be reusable by anyone else. I'm sure some of the stuff I hide will be considered excessive, and some will be considered missing. What I enjoy in this HN thread is that we share the { practice, tools, docs, tips }, then to each their own :)
3. I'm not interested in maintaining a public repo of that kind of stuff, and/or replying to Issues. So, would rather not make it public.
Sorry/notsorry ¯\_(ツ)_/¯ , at any rate, glad we're sharing tips around the practice.
You could share them publicly without having the burden of replying to issues/PRs etc. But I get you.
I'll add that another thing that is pretty easy to do is to add a Dark Mode to websites that don't have one. All you need is a userContent.css/uBlock rule like
, and ta-da! Dark mode respecting your OS dark/light setting based on pref or time of day :)In theory, one can use uBlock0 for everything (with CSS and I think also JS injection), but userstyles and userscripts are way easier to use sometimes. And you can reimplement Dark Reader with userstyles, but you'll have to keep track of various site-specific tweaks to make it look good. (Should be possible though! Might be a cool idea for a pet project.)
But I understand the concerns with having too many extensions from too many different authors, yeah.
I'd like to open source/release my styles but I'm not sure which is the best choice.
uBlock is great for blocking things from loading (like images) but for visual updates I prefer CSS.
Also, I try not to have many configurations/extensions extra that I have to install in a new machine. As I did not find a good way to manage these configs as code.