💡 Feature request: Provide a FILTER that BLOCKS posts and comments based on certain WORDS
Is your feature request related to a problem? Please describe.
In its current state, Reddit may be the most politicized platform ever, an echo chamber of echo chambers.
It has become a place for toxic, one-sided discussions, even in subreddits that should not be about politics at all: I just saw two guys arguing about Trump on r/PHP or r/lotr (a self-declared apolitical subreddit) banning X links.
r/pics is the most obvious example: right now, out of 25 posts, 21 are political posts (84% of the total).
Describe the feature you would like to be implemented
It would be nice to have in Redlib settings a filter that on the basis of certain words hides unwanted content.
The user provides some words (or regex?) that work on:
- titles of posts
- flair of posts
- (text) preview of posts
- comments and subsequent replies
If the word(s) is present in the title, flair, or preview of a post, then the entire post is discarded (hidden).
If the word(s) is present in a comment, then the entire comment and subsequent replies are discarded (hidden).
Describe alternatives you've considered
uBlock's rules could be an alternative but most mobile users do not have browsers with with support for extensions, so it is not a real solution.
The best solution would be to leave Reddit, but unfortunately many of its communities are either not found elsewhere (especially the technical ones) or are found on Discord which makes the content scattered or difficult to search.
Additional context / screenshot
This is an example of how the new setting could look (note that politic(s?) is a regex):
This is an example of how the filtered comment could look:
Nice feature. I just wondering about implementation: server-side or client-side. In case of server-side it can be CPU-heavy and ofc can be used as DDOS mechanism from abusers, in case of client-side it will require some javascript to function. @sigaloid I can implement this btw, but what you think about way of implementation?
can we also have it not show the filtered, and have default words in the filter via config, for private instances that are accessed across multiple devices?
maybe also have community provided filter lists for common topics such as politics and other common triggers and things that come with content warnings
You can use your adblocker to block posts containing keywords. In Ublock Origin I have:
<redlib instance>##div.post:has(h2.post_title:has-text(/tesla|trump|biden|republic|democrat|conservative|senate|congress|candidate|politic|healthcare|capitalism|billionaire|inflation|corporation|greed|tariff/i))
Adapted from this comment
On a related note, I was looking for a way to straight-up hide all comments as I primarily just use reddit either for news aggregation (usually regarding PC hardware) or for viewing user-made image/video content.
(on a similar note, I keep YouTube comments hidden by default whether via 3rd party front-ends or by relying on youtube.com/embed/)
On Teddit and old.reddit.com, I used to be able to use custom adblock filters to achieve this, but I don't seem to be able to do this with redlib. Teddit is dead AFAIK (I largely preferred it to redlib) and old.reddit.com is less-than-ideal because it doesn't work with reddit-hosted video posts.
I primarily just use reddit either for news aggregation (usually regarding PC hardware) or for viewing user-made image/video content
Why not use an RSS reader? Sounds perfect for your case.
Both Redlib and Reddit support the use of RSS feeds.
Example (r/typescript).
Why not use an RSS reader? Sounds perfect for your case.
Do these support embedded reddit-hosted video posts? I mean thinks like this (both point to the same video post):
- https://v.redd.it/efohgttqjvle1
- https://reddit.com/r/AyyMD/comments/1j06m7r/leaked_video_of_rayymd_users_watching_rx_9000/
That basically the biggest bottleneck for me right now with old.reddit.com
Both Redlib and Reddit support the use of RSS feeds.
Care to point it out where the RSS feed URL is located for redlib? I can find the one for reddit without issue (just add /.rss to the end of a subreddit URL), but that still doesn't support the embedded reddit-hosted video posts like redlib's normal pages do.
Do these support embedded reddit-hosted video posts?
I made a test with Newsboat (my RSS reader) and I can only (direct) open images (no videos).
Care to point it out where the RSS feed URL is located for redlib?
First of all, the maintainer of the instance must have enabled them (rl.bloat.cat has them).
Just add .rss after the subreddit name: https://rl.bloat.cat/r/typescript -> https://rl.bloat.cat/r/typescript.rss
I made a test with Newsboat (my RSS reader) and I can only (direct) open images (no videos).
I can't even get it to work with embedded reddit-hosted image posts which is something at least reddit's rss feed supports. Observe:
- https://rl.bloat.cat/r/ayymd.rss
- https://reddit.com/r/ayymd.rss
All of the posts with non-clickable titles are embedded reddit-hosted images, thereby requiring the user to click "comments" anyway and putting us back to square one of wanting to hide all comments.