118
submitted 2 weeks ago* (last edited 1 week ago) by zkfcfbzr@lemmy.world to c/youshouldknow@lemmy.world

Why YSK: Certain topics are stressful and tend to spread all over the site, including to unrelated communities. Blocking communities can be overkill and ineffective, and likewise for blocking individual users.

To do so, open up the uBlock Origin dashboard, go to the 'My filters' tab, and add this filter:

lemmy.world##article.row:has-text(/word1|word2|word3|word4/i)

For example:

lemmy.world##article.row:has-text(/Trump|Elon|Musk|nazi/i)

Then apply the changes and reload any open tabs, and all posts which contain any of your filtered words will simply not show up.

You'll have to change "lemmy.world" at the start to whatever your actual instance is. You can filter as many or as few words as you want, just keep the / at the start, the /i at the end, and separate words with | pipes. What's actually being filtered is a case-insensitive regex, if you want to get fancy with it.

Here are equivalent filters for reddit and Ars Technica:

reddit.com##div.thing[data-context="listing"]:has-text(/word1|word2|word3|word4/i)
arstechnica.com##:not(:not(head>title:has-text(/^Ars Technica/))) article:has-text(/word1|word2|word3|word4/i)

As a disclaimer, I made these myself, and I'm not particularly familiar with creating uBlock Origin filters. There may be better ways to do this. Also the reddit one is specific to old.reddit.com, and the lemmy filter is made to work with the default lemmy.world web UI and may not work on other UIs without tinkering.

Yes, I know I'm just hiding my head in the sand.

top 13 comments
sorted by: hot top controversial new old
[-] slowmotionrunner@lemmy.sdf.org 6 points 2 weeks ago

Was literally updating my filtered words just now. I use Voyager app on iOS and it can be done in the settings.

Voyager Settings

[-] reallyzen@lemmy.ml 3 points 2 weeks ago* (last edited 2 weeks ago)

On Android, in Connect and Voyager you can block URLs too, hence getting rid of toxic / clickbaity sources beyond filtering for specific keywords

That's just great, thanks Connect and Voyager devs!

[-] darkkite@lemmy.ml 3 points 2 weeks ago

ideally, this is a native feature in lemmy

[-] Free_Opinions@feddit.uk 3 points 2 weeks ago* (last edited 2 weeks ago)

I've been using similar, but slighly different ones that I assume do the same thing. You can also copy the filter and just replace the filter word rather than including them all in one. Naturally here the instance name must be also changed to that of yours.

lemmy.world##div.post-listing:has(span:has-text("/trump/i"))

And for filtering comments:

lemmy.world##article.comment-node:has(div.comment-content:has(p:has-text(/trump/i)))

[-] zkfcfbzr@lemmy.world 2 points 2 weeks ago

At one point I had the very similar filter lemmy.world##.post-listing:has-text(/trump/i), but I wasn't happy with it because it would also remove post content on actual post pages, not just the post feed. That was the whole reason I swapped to the article.row solution instead - posts in the feed have the row class while posts on their own page don't. But it looks like you found an alternate solution to achieve essentially the same thing. Neat!

I have no real interest in filtering out comments, but it's nice to have that option there for people who do.

[-] helpImTrappedOnline@lemmy.world 2 points 2 weeks ago

It helps, and thanks for ublock idea for web browser users.

but because post titles aren't required to contain the keywords, I still see a lot of political crap.

[-] homesweethomeMrL@lemmy.world 2 points 2 weeks ago

Voyager has a wonderful filter list under Settings -> Filters & Blocks. Works great and you can back up your settings to a json file in case you need to reload them.

[-] lurch@sh.itjust.works 2 points 2 weeks ago

Eterity app can do that on Android

[-] lurch@sh.itjust.works 5 points 2 weeks ago

my title filters btw:

Orban,Trump,Vance,Elon,Musk,NATO,Scholz,Merz,Habeck,AOC,Thunberg,Tunberg,Greta,Mr. Beast,MrBeast,Bitcoin,Putin,Russia,Kremlin,AfD,Grünen,Gaza,Israel,Palestine,Democrat,Republican,Surpreme,Abortion,Taliban,China,Chinese,Harris,Biden,Genocide,Tory,Brexit,Google,Microsoft,Windows,Apple,iPhone,Android,OpenAI,ChatGPT,Lora,intel,nvidia,arch,mint,ubuntu,framework,raspberry,pihole,pipewire,linux,bezos,amazon,fairphone,Europeans,Brics,leyen,swift,immigrant,Santis,California,Youtube,Montag, Laberfaden,G'sudert wird,Bluesky,Twitter,Montagslaberfaden,blsky,bluesky,isglitch.com,Gaetz,Kulturfreitag,Jimmy Carter,Boebert,Pokemon
[-] Boomkop3@reddthat.com 2 points 2 weeks ago
[-] frightful_hobgoblin@lemmy.ml 1 points 2 weeks ago

I would like to see less posts about Judd Trump.

[-] njm1314@lemmy.world 0 points 2 weeks ago

Is there some kind of combination of words to filter out post bitching about having to see posts?

[-] Blaze@lemmy.cafe 0 points 2 weeks ago

You can hide specific posts on Lemmy 0.19.4, unfortunately LW is still on 0.19.3

this post was submitted on 21 Jan 2025
118 points (92.1% liked)

You Should Know

33929 readers
12 users here now

YSK - for all the things that can make your life easier!

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must begin with YSK.

All posts must begin with YSK. If you're a Mastodon user, then include YSK after @youshouldknow. This is a community to share tips and tricks that will help you improve your life.



Rule 2- Your post body text must include the reason "Why" YSK:

**In your post's text body, you must include the reason "Why" YSK: It’s helpful for readability, and informs readers about the importance of the content. **



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That's it.



Rule 5- No baiting or sealioning or promoting an agenda.

Posts and comments which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding non-YSK posts.

Provided it is about the community itself, you may post non-YSK posts using the [META] tag on your post title.



Rule 7- You can't harass or disturb other members.

If you harass or discriminate against any individual member, you will be removed.

If you are a member, sympathizer or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people and you were provably vocal about your hate, then you will be banned on sight.

For further explanation, clarification and feedback about this rule, you may follow this link.



Rule 8- All comments should try to stay relevant to their parent content.



Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- The majority of bots aren't allowed to participate here.

Unless included in our Whitelist for Bots, your bot will not be allowed to participate in this community. To have your bot whitelisted, please contact the moderators for a short review.



Rule 11- Posts must actually be true: Disiniformation, trolling, and being misleading will not be tolerated. Repeated or egregious attempts will earn you a ban. This also applies to filing reports: If you continually file false reports YOU WILL BE BANNED! We can see who reports what, and shenanigans will not be tolerated.



Partnered Communities:

You can view our partnered communities list by following this link. To partner with our community and be included, you are free to message the moderators or comment on a pinned post.

Community Moderation

For inquiry on becoming a moderator of this community, you may comment on the pinned post of the time, or simply shoot a message to the current moderators.

Credits

Our icon(masterpiece) was made by @clen15!

founded 2 years ago
MODERATORS