this post was submitted on 07 Jul 2023
21 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
21
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

Userscript that adds a notification panel to the navigation bar.

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

Seems it broke for me. Inspection shows an error "DOMException: Document.querySelector: '.dropdown:has(.login)' is not a valid selector"

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

Are you possibly on Firefox? The userscript now requires the :has() selector which is disabled behind a flag on Firefox. you can enable it by opening about:config in a new tab, searching for layout.css.has-selector.enabled and setting it to true

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

That did it. Weird that the first refresh had both the old indicator and the bell showing, but now it's back to normal again. I guess there's no way to indicate to FF users what needs to be toggled, is there?

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

It's on the greasyfork page, but I will probably add a warning that shows up if the userscript detects you don't have it enabled in a future update

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

Definitely if you can detect it, have it break gracefully and let the user know. Wasn't sure if that was possible or not. I can't fault FF for locking some things down a bit.

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

Yeah, I will definitely do it the first thing in the morning! It's too late for me to do that now