this post was submitted on 15 Jun 2023
31 points (100.0% liked)

Kbin Userstyles and Userscripts

4 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
 

Current features:

Add domains to magazines and users for federated content
Collapse comments
Collapse replies
Replies start collapsed
Move comment box to top
Fix comment buttons and add a cancel button
Blur / Hide NSFW domains (thanks to u/le__el)

All features are toggleable if you like the way another script does it instead.

top 30 comments
sorted by: hot top controversial new old
[–] blobcat@kbin.social 3 points 1 year ago (1 children)

Can you add "Add domains to magazines and users for federated content" to activity? It's missing there.

[–] throwawaylurker@kbin.social 2 points 1 year ago (1 children)

Possibly related: "Add domains to magazines" breaks with infinite scroll. So it works on posts when the page first loads, but when I scroll down and more posts load in, they don't have the domain:

[–] SirPsychoMantis@kbin.social 3 points 1 year ago

I'll look into fixing this, I don't use infinite scroll personally.

[–] Mallard@kbin.social 3 points 1 year ago (1 children)

Nice job!
I'm very surprised that collapsing comments aren't officially implemented yet.

It would be good to see the collapsed comment show the "top row" info (avatar, name, comment age, votes) - even if just to keep the [-] inline with the [+].

[–] SirPsychoMantis@kbin.social 1 points 1 year ago

Should be pretty lined up now

This is great, thanks for your hard work on this, really great improvements to the UX!

[–] ripcord@kbin.social 2 points 1 year ago (1 children)

Hmmm, is there a way to install this in FF for Android? The links say I should be able to use Grease monkey, Tampermonkey, etc but FF refuses to install. I'm guessing they're written for the old FF API.

[–] Thorned_Rose@kbin.social 2 points 1 year ago

I have Tampermonkey installed on my phone and it came up with an error each time I tried. But at some point it started working (at least it says it's installed)
https://postimg.cc/NLYf611z
I have yet to test it though. If you haven't tried clicking install a few times, try that since it worked for me? 🤷🏻‍♀️

[–] DarkThoughts@kbin.social 2 points 1 year ago (1 children)

Is the red dotted line next to the reply meant to highlight the OP / thread starter? If so, is it possible to make this a little more obvious?

[–] thegreekgeek@kbin.social 2 points 1 year ago (1 children)

Hey, so I installed version 1.7 and I'm having issues closing the splash screen on both desktop and mobile. Does anyone else have this issue or is it just me?

[–] SirPsychoMantis@kbin.social 2 points 1 year ago (1 children)

Fixed a few issues, tell me if it is still happening with 1.9

[–] thegreekgeek@kbin.social 2 points 1 year ago

That works! Thank you sir, keep up the good work!

[–] DarkThoughts@kbin.social 2 points 1 year ago

I think the issue with domains not showing for magazines & users has to do with infinite scroll being enabled. Every newly loaded page seems to just show them without the domain.

[–] arkcom@kbin.social 2 points 1 year ago (2 children)

One problem that all of these scripts that move the reply box have - when you try to use formatting, the tags are always inserted in the top box. Is that something that is fixable with the script?

[–] DarkThoughts@kbin.social 2 points 1 year ago (1 children)

I use this script + the kbin-it theme for stylus, which moves it to the top as well, and when I disable toe top comment box in this script the formatting tags are applied to the reply box instead of the one at the top.

[–] DarkThoughts@kbin.social 2 points 1 year ago (1 children)

Sorry, pinging @SirPsychoMantis for visibility. Not sure if this is a particular issues with userscripts but this seems to work for me.

[–] arkcom@kbin.social 2 points 1 year ago (1 children)

I think SirPsychoMantis fixed his too. Been working for me since last update.

[–] SirPsychoMantis@kbin.social 3 points 1 year ago

Yep, I am changing the ID of the "reply" box when it is created.

[–] SirPsychoMantis@kbin.social 2 points 1 year ago (3 children)

Not as far as I can tell, I opened an issue in the official bug tracker

Edit: Actually I'm going to try hiding the box when you open a reply as a workaround

load more comments (3 replies)
[–] Rainbright@kbin.social 2 points 1 year ago (1 children)

I’ve only been able to get this to work on Firefox on my desktop. Anyone successfully got it running on iOS Safari? I’m trying to use the Userscripts extension.

[–] Rainbright@kbin.social 2 points 1 year ago

Never mind. Figured it out. I hadn’t enabled the extension on safari. Duh

[–] McBinary@kbin.social 1 points 1 year ago* (last edited 1 year ago) (1 children)

I wonder if some new code was pushed to the backend today? Suddenly this morning all threads are auto-hiding all comments when this script is enabled. I've checked that none of the comment settings have been changed, and tested with and without them, but the only thing that allows comments to load is turning off the script. I've even tried reinstalling the script.

It was working wonderfully last night. So I'm guessing something new was added.

[–] SirPsychoMantis@kbin.social 1 points 1 year ago (1 children)

Do you mean the "Replies start collapsed" setting or that you can't see any comments?

[–] marcf@kbin.social 0 points 1 year ago (1 children)

The new OP tag setting seems to be hiding all comments sometimes, possibly only when the OP posts a comment.

[–] SirPsychoMantis@kbin.social 1 points 1 year ago (1 children)

Could you tell me the exact settings you have on in the sidebar? I can't seem to replicate this. Also only sometimes?

[–] marcf@kbin.social 1 points 1 year ago

The setting is "Add OP tag".

When it's off, this post, for example, shows comments. Turn it on, and the comments disappear. There are other posts where the comments still appear even when the setting is on, such as here.

The difference appears to be whether the OP posts a comment. When they do, all comments seem to disappear with the setting on.

If you're not seeing the behaviour, it's possible I've got other scripts or modifications running which might be interfering with yours, not sure!

[–] Rhapsody@kbin.social 1 points 1 year ago

Hey there, is it possible to add an option to move the collapse button to the left of the username (so that it's always in a consistent spot, versus moving from comment to comment depending on how long the line before it is), or to even add it to the space to the left of the avatar (like some reddit themes did)? Otherwise, this is great.

[–] 0rito@kbin.social 1 points 1 year ago

Any chance you'll move this to GitHub? Would love to contribute.

[–] CodingAndCoffee@kbin.social 1 points 1 year ago

This is an EXCELLENT set of features

load more comments
view more: next ›