[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.

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
Whooping_Seal 2 points 3 years ago

I will mention, anyone that is using the light theme will have this broken. From what I have seen most people seem to be using the dark theme anyways so it's not that big of a deal but it is worth mentioning.

Thank you for the great userscript! It is quite nice to have a colour coded view of this.

path: 0 263883, hotness: undefined, score: 2, children: 1
CodingAndCoffee 4 points 3 years ago

lol yes, I forget that some people are psychopaths who like staring into the sun

path: 0 263883 263908, hotness: undefined, score: 4, children: 0
mershed_perderders 1 point 3 years ago

pretty nice!

I wonder about these types of scripts and plugins promoting an in-group/out-group mentality, but I suppose we shall see.

path: 0 234304, hotness: undefined, score: 1, children: 4
Whooping_Seal 1 point 3 years ago

I feel like the inclusion of highlighting users from heavily moderated instances could create that mentality, but I think it is quite valuable to have a colour coded view of who is using kbin and who is using lemmy. It's just somewhat interesting seeing which communities people from different federated platforms are interacting with.

path: 0 234304 263947, hotness: undefined, score: 1, children: 3
CodingAndCoffee 2 points 3 years ago

As a user on a defederated instance, for me it's a reminder that even if I see one of their comments or posts on a non-beehaw instance, there's no point in replying because they'll never see it anyway.

path: 0 234304 263947 264145, hotness: undefined, score: 2, children: 2
Whooping_Seal 2 points 3 years ago

I DIDN'T THINK OF THAT, that is actually quite a useful piece of information thank you for mentioning that. As I am also on a defederated instance (rip sh.it.heads) this will be useful.

path: 0 234304 263947 264145 264199, hotness: undefined, score: 2, children: 1
CodingAndCoffee 2 points 3 years ago path: 0 234304 263947 264145 264199 264206, hotness: undefined, score: 2, children: 0
plugins
plugins

@sh.itjust.works

login for more options
3412
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...