I wish I could block Elon Musk from reality.
Technology
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
Did this with Kim Khardashian on my pc, if I can do it for mobile too that would be lit.
uBlock works on Firefox mobile, filters can be set.
Sync for Lemmy has keyword filtering! :)
What I really want is a browser plugin that replaces any mention of "Ron Johnson" with "Ron Johnson, THAT fucker"
"Ron Johnson, THAT fucker's blockade of spending measure puts government shutdown in focus"
There are so many other people that could and should be applicable to.
Too late.
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
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.
Stuff about X-rays will be filtered, for example. You could probably go a little safer with the regex.
Now you have two problems.
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.
It's sadly not perfect as @[email protected] 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.
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.
Don't block them, we need you to help downvote them.
No thanks let the bots have at it at this point.
Neat! I follow Lemmy communities in an RSS feed so I can just filter right in my RSS reader. It's pretty nice.