this post was submitted on 17 Jun 2023
7 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
 

This userscript adds a checkbox to the sidebar that lets you turn magazine stylesheets on and off. It also remembers if you have a magazine's stylesheet disabled, so when you come back to it later, it'll still be turned off (or back on!)

If you don't have a userscript manager, you can install Tampermonkey or Firemonkey if you're on firefox, and then click the install button on the greasyfork page.
Here's what it looks like

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

Line 36: let style = document.querySelector("head > style:nth-child(22)"); is a rather easily broken way to do it (though I don't know anything better either :P ), and at least for me to make this work (on https://kbin.social/m/boycottreddit and https://kbin.social/m/SilentHill at least) I have to set it to the 21st child instead.

[โ€“] [email protected] 1 points 1 year ago

I'll see if I can figure out a better way to do this, good job finding a decent workaround though