this post was submitted on 23 Jun 2023
10 points (100.0% liked)

Lemmy Plugins and Userscripts

2145 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
 

Requires: greasemonkey/tampermonkey/other script injector.

If your home instance is federated with instances you don't want to see, you can use this script to remove all posts and comments from that instance without having to block communities individually.

Example:

Line 17: const blockedInstances = ["example.ml","lemmy.world"];

Will block:

user@lemmy.world posts to community@anyinstance.com

user@anyinstance.com posts to community@lemmy.world

user@lemmy.world comments on any post

Usage:

Edit the comma-seperated list on line 17 to the instances you wish to block. Add new ones inside quotes following a comma. Do not include https:// or trailing forward slashes in the instance text.

you are viewing a single comment's thread
view the rest of the comments
[–] RyanHx@vlemmy.net 2 points 1 year ago* (last edited 1 year ago) (1 children)

Nope it can block other instance's communities. This script will block all posts at an instance level though, rather than having to keep adding blocked communities when people create more on that instance.

[–] mershed_perderders@sh.itjust.works 2 points 1 year ago (1 children)
[–] RyanHx@vlemmy.net 2 points 1 year ago

See my edit to the above comment, I misunderstood at first.