30
submitted 6 days ago* (last edited 5 days ago) by Bluetreefrog@lemmy.world to c/programming@programming.dev

I'm wondering how hard it would be to write a firefox extension that blocked individual Lemmy posts based on the presence of words in a block list.

I'm pretty famiiar with Python, but have only done a little bit of hacking of JS, so was hoping the brains trust could provide some insight.

you are viewing a single comment's thread
view the rest of the comments
[-] python@programming.dev 8 points 6 days ago

Should be pretty doable, even if you don't have much JS knowledge yet. You might want to look into TamperMonkey for this, it's a sort of framework for making custom browser plugins!

[-] HighlyRegardedArtist@lemmy.world 8 points 5 days ago* (last edited 5 days ago)

TamperMonkey is closed source. I'd recommend ViolentMonkey instead, since it's open source and is practically identical to the other *Monkey extensions.

~~edit: To add, the developer of TamperMonkey has also shown themselves to be not worthy of trust; see Wikipedia under Controversy.~~

[-] Lua@lemmy.world 4 points 5 days ago

Did you actually read the "controversy" section?

A malicious adware media player - not related to Tampermonkey - installed Tampermonkey on your device to do bad stuff. And they could have done the same with any other userscript extension, like the suggested Violentmonkey. The wiki section even states:

This does not mean that Tampermonkey is malicious, but rather that a malicious program is utilizing a legitimate program for bad behavior

It's fine to advocate and promote open source software, but why do that with lies and slander?

[-] HighlyRegardedArtist@lemmy.world 2 points 5 days ago* (last edited 5 days ago)

I skimmed through the section and simply assumed the worst, sorry about that. Still, it is closed source, so you just have to trust them, bro, and that's more often than not the wrong approach.

edit: Skimming a bit more, there actually seem to be some valid concerns around privacy, since TamperMonkey seems to have used (still uses?) google analytics, which is enabled by default, so take that as you will; see: https://news.ycombinator.com/item?id=26057106

load more comments (2 replies)
this post was submitted on 10 Nov 2024
30 points (94.1% liked)

Programming

17314 readers
41 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS