this post was submitted on 15 Jun 2023
22 points (100.0% liked)

Lemmy Plugins and Userscripts

375 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
 

similar to the kbin userscript I made this colorizes posts and comments by origin. kbin users/posts are dark blue, Beehaw (and any other restrictive moderation sites in the future) are red, local is left unchanged.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

Great job, thank you!
Just one thing - it would be great if these rules would not work on strictly moderated instances themselves because there is no point of such highlighting there. We can configure it in userscript setting in UI. But it's better to have such logic right in the scripts itself. So far I have just added this additional condition to the block at the end:

if (isLemmy && !isStrictlyModerated(window.location.hostname)) {
GM_addStyle(...