this is amazing! thank you
Kbin Userstyles and Userscripts
Custom CSS and JS to help improve your Kbin experience! ### Userscripts Greasy Fork ### Stylesheets UserStyles.world ### Userscript managers
- Tampermonkey - FireMonkey (Firefox only) - Violentmonkey ### Stylesheet managers
- Stylus (chrome/edge, firefox) - Cascadea (safari only)
Updated to version 0.2, integrating changes from @Ori and a bug fix for getting the magazine name when on a magazine page
I'm glad to see someone getting use out of kbin-mod-options. This looks like a useful userscript. Good work!
It may be worthwhile to add a check around your removeButtons.querySelectorAll("button").forEach(button => { section. For instance:
if (removeButtons.length > 0) {
removeButtons.querySelectorAll("button").forEach(button => {
button.style.backgroundColor = 'var(--kbin-vote-bg)';
button.style.color = 'var(--kbin-vote-text-color)';
button.style.marginLeft = 'var(--kbin-entry-element-spacing)';
button.style.padding = '2px';
button.style.border = 'var(--kbin-section-border)';
});
}
This has worked only once. After that the "edit" button is dead again. Thanks anyway.
Odd. Your console say anything? (F12 -> Console)
OK fresh install gives me removeButtons.querySelectorAll is not a function
, and I also get this with your code. BTW I'm not at my PC, just a tablet :/
@gabriell - Thanks for sharing. I'm going to share my full edit of the script, replace your local version with the one below and see if your issues resolve.
Sadly this doesn't work. Thanks for sharing BTW. I turned off all of the other scripts thinking they might be in conflict but it still gives the same error:/
Thanks for the suggestion! I'll add that to my next update, I also found an issue with retrieving the magazine name if you're in a magazine feed that I need to fix.
This is great,. But the edit button does nothing. I'm on android, using Firefox with Kbin usability pack, Subscription panel and Enhancement script.