this post was submitted on 25 Jul 2023
10 points (75.0% liked)

Lemmy Plugins and Userscripts

2124 readers
1 users here now

A general repository for user scripts and plugins used to enhance the Lemmy browsing experience.

Post (or cross-post) your favorite Lemmy enhancements here!

General posting suggestions:

Thanks!

founded 1 year ago
MODERATORS
 

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

top 9 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago (1 children)

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.

[–] [email protected] 2 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago (2 children)

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

[–] [email protected] 3 points 1 year ago

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

[–] [email protected] 1 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago (1 children)

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!

[–] [email protected] 2 points 1 year ago

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

[–] [email protected] 2 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago

That still leaves the hr element between each post