[UserScript] Federation Awareness

3 years ago by CodingAndCoffee to c/plugins

Color posts and comments based on moderation rules of the origin server

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.

load all comments
Ginkko117 2 points 3 years 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(...

path: 0 245055, hotness: undefined, score: 2, children: 0
plugins
plugins

@sh.itjust.works

login for more options
3410
91
14

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:

  • Preface the submission with the type of enhancement - ex: [UserScript].
  • Include a screenshot of the enhancement in use (where possible)
  • Indicate the requirements for use (eg, greasemonkey, stylus, etc.)

Thanks!

go to feed...