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

Kbin Userstyles and Userscripts

15 readers
1 users here now

Custom CSS and JS to help improve your Kbin experience! ### Userscripts Greasy Fork ### Stylesheets UserStyles.world ### Userscript managers

founded 1 year ago
 

Given how quickly Beehaw reacted to external users, it's becoming more important for users to know "where" they are engaging with content, meaning "where the content was federate in from".

Lemmy mostly has this handled in the UI but kbin still needs some time. Additionally, while the QOL plugin does show domain suffixes it's not a super strong reminder that you are engaging with federated users/comments/articles. This script colorizes based on "threat level" or strictness of the moderators of the federated server.

compatible with the excellent QOL updates tampermonkey script by https://kbin.social/u/SirPsychoMantis, as well as the other 2 scripts I've previously written

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

Do you use TamperMonkey, or something else?

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

ViolentMonkey

Since uninstalling the fed script, I now get the same error, but it's pointed to the code-highlighter. Clearly the problem, just don't know why it's not compatible with what I have. I have not tried turning all the scripts off, but I figured you run most of those too so I doubt it's that.

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

Ah! That's why. The specs for gm_info are different for ViolentMonkey and TamperMonkey. That's insane to me, but I've got a fix! Again, really sorry for the hijack CodingAndCoffee.

Updated kbin-code-highlighting
Updated kbin-federation-awareness

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

Nailed it. Perfect.

Now I've got one more issue, since you've got your hands in it. I had asked before in this thread about how when infinite scrolling is on, the CSS doesn't get reloaded so none of the new feeds get accented. It works fine with manual page flipping since the site reloads. And I have no idea how the infinite loading works to figure out where a trigger might be to recall the script.

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

@Rhaedas

Figured out a solution for kbin-federation-awareness, will take longer for KCH. New link here.

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

Working, good job and thanks!