292

Using uBlock Origin, you can add your own filter. This filter will block any post with the text "Elon Musk" (not case sensitive), modify as needed.

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

div.post-listing is the element to block
:has(args) returns elements where args evaluate to true
span is the element with the title text
:has-text(needle) returns the element if it has the next needle, supports regex with \needle\ and remove case sensitivity with i

Read more here: https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-filters

all 50 comments
sorted by: hot top controversial new old
[-] seitanic@lemmy.sdf.org 59 points 1 year ago

I wish I could block Elon Musk from reality.

[-] JimmyBigSausage@lemm.ee 14 points 1 year ago

I think he is doing it to himself imho.

[-] otp@sh.itjust.works 12 points 1 year ago
[-] KingJalopy@lemm.ee 1 points 1 year ago

Better late than never I suppose

[-] Jessvj93@lemmy.world 23 points 1 year ago

Did this with Kim Khardashian on my pc, if I can do it for mobile too that would be lit.

[-] uranibaba@lemmy.world 21 points 1 year ago

uBlock works on Firefox mobile, filters can be set.

[-] Anarki_@lemmy.blahaj.zone 10 points 1 year ago

Sync for Lemmy has keyword filtering! :)

[-] jordanlund@lemmy.world 16 points 1 year ago

What I really want is a browser plugin that replaces any mention of "Ron Johnson" with "Ron Johnson, THAT fucker"

https://www.jsonline.com/story/news/politics/2023/09/19/ron-johnson-spending-blockade-puts-government-shutdown-in-focus/70895824007/

"Ron Johnson, THAT fucker's blockade of spending measure puts government shutdown in focus"

[-] FlyingSquid@lemmy.world 5 points 1 year ago

There are so many other people that could and should be applicable to.

[-] FlyingSquid@lemmy.world 13 points 1 year ago
[-] TDCN@feddit.dk 11 points 1 year ago

I have been wondering how I could do the same for X (formerly known as twitter). I'm tired of reading about it every day. I don't know how to filter it out since it's just one letter and it'll filter out everything just containing an X in a word

[-] madsen@lemmy.world 12 points 1 year ago* (last edited 1 year ago)

You can use the regex: /\bx\b/i

It'll catch 'x' surrounded by word boundaries (stuff like spaces, dashes/hyphens, commas, etc.) but not 'x' with other letters on either side, so it won't match e.g. "sax" or "boxer", but it'll match "x.com" and "Elon's X" and stuff. It's probably not perfect though, so use with caution.

[-] Mananasi@feddit.nl 5 points 1 year ago

Stuff about X-rays will be filtered, for example. You could probably go a little safer with the regex.

[-] ook_the_librarian@lemmy.world 2 points 1 year ago

Now you have two problems.

[-] madsen@lemmy.world 1 points 1 year ago

Yeah, there's room for improvement. I did say, though, that it probably wasn't perfect. I'm sure someone more patient than me can come up with a much more effective regex.

[-] TDCN@feddit.dk 3 points 1 year ago

It's sadly not perfect as @Mananasi@feddit.nl also states, and since I like maths related stuff too and science it'll likely filter out too much stuff. But I appreciate your efforts. An ai algorithm or a community created blacklist is probably the only solution.

[-] madsen@lemmy.world 1 points 1 year ago

Yeah, good points. I did note, though, that it probably wasn't perfect. I kinda figured it would probably catch other stuff too but I couldn't think of anything specific at the time.

[-] alienanimals@lemmy.world 6 points 1 year ago

Don't block them, we need you to help downvote them.

[-] extant@lemmy.world 1 points 1 year ago

No thanks let the bots have at it at this point.

[-] mark@programming.dev 2 points 1 year ago

Neat! I follow Lemmy communities in an RSS feed so I can just filter right in my RSS reader. It's pretty nice.

this post was submitted on 19 Nov 2023
292 points (93.5% liked)

Technology

59598 readers
2192 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS