Spyke
plugins·Lemmy Plugins and UserscriptsbyZetaphor

I had ChatGPT write a userscript that lets you block posts using keywords

As the title says, I got tired of hearing about twitter and reddit so provide this userscript a comma separated list of keywords and you will no longer see posts containing those keywords. I'd love to see this functionality built into Lemmy itself, but until then here's a userscript.

Repo link

https://greasyfork.org/en/scripts/471718-lemmy-post-keyword-filterOpen linkView original on zemmy.cc

I love the idea. It's not working for me. Violenmonkey, firefox, Linux, for what it's worth. I've been wanting something like this since I started using Lemmy.

2
Zetaphorreply
zemmy.cc

I'll give violentmonkey a try, also using Firefox on Linux, though that shouldn't be the thing that makes a difference.

2
lemmy.one

Yeah, I didn't think any of that would make a difference. It's just not showing under active scripts when I'm on lemmy.one

1

Fixed! Turns out it didn't like the way I was doing wildcards in the URL match

I've updated the greasyfork and the repo

3
Zetaphorreply
zemmy.cc

Just verified that it does work for me with Tampermonkey/Firefox on lemmy.one

I'll have to look into why Violentmonkey is different, this is the first I'm hearing of that extension

1
lemmy.one

This is annoying. Still didn't work for me. But I uninstalled violentmonkey (not sure why I picked that one years ago, but I hadn't had any issues before. I installed tampermonkey and it seems to be working for me. Thanks!

1

That's good that you got it working in the end. I was able to reproduce the bug and successfully test it using Violentmonkey. They're clearly doing some things differently.

Tampermonkey has far better UX in my opinion

2
lemm.ee

You could also use a ublock filter. Example:
lemm.ee##.post-listings .post-listing:has(.post-title:has-text(/twitter|reddit/i))

2

You reached the end

I had ChatGPT write a userscript that lets you block posts using keywords | Spyke