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

top 4 comments
sorted by: hot top controversial new old
[–] [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

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

That puts a checkbox on the magazine but it doesn't seem to do anything. Also, when it is unchecked, refreshing the page causes it to be checked again.

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

Hmm, it seems to have been broken by an update to the site (or maybe incompatibility with another script), I'll see what I can do about fixing it

load more comments
view more: next ›