OC kbin Magazine Style Toggle - Lets you enable and disable per-magazine stylesheets

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

JohnEdwa,
JohnEdwa avatar

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.

artillect,
artillect avatar

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

DreamySweet,
DreamySweet avatar

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.

artillect,
artillect avatar

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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • kbinStyles
  • kavyap
  • thenastyranch
  • GTA5RPClips
  • tester
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • cisconetworking
  • megavids
  • khanakhh
  • normalnudes
  • osvaldo12
  • cubers
  • tacticalgear
  • Durango
  • ethstaker
  • modclub
  • anitta
  • provamag3
  • Leos
  • JUstTest
  • lostlight
  • All magazines