Spyke

kbin enhancement script: Userscript to collapse comments and add domains to names

Just a quick and dirty userscript to add some features I feel are super important. I'll probably look into creating some real PRs, but I figure the devs are probably in "put out fires" mode right now.

EDIT:
Added a few more features and cleaned up the expand / collapse UI. All features are toggleable in the kbin sidebar.

https://greasyfork.org/en/scripts/468612-kbin-enhancement-scriptOpen linkView original on kbin.social
kbin.social

This is a big QoL thing, and I appreciate you putting it together. Hoping to see it become standard functionality on Kbin in the future.

6

I agree! Please make this happen, powers that be that have the knowledge to do this.

2
McBinaryreply
kbin.social

Thanks for this. Is it possible to change the color of the home instance to be more noticeable? Also I think the "@" is being dropped from the replace.

I assume its would need to be in this line, but it's been 20 years since I coded anything and have no idea what script language this is.

var homeinstance2 = homeinstance.replace( "/u/@" + myname + "@" , '');

2
pushkareply
kbin.social

Hey - with the dark and light mode - I'll take a while to change the colour - for now I've made it in italics, so if anything - a 2nd script can change the colour of the community name

it's showing

name - community

not breaking up the users URL / address with a dach

name - @community

it's possible to make it

name@community - but that's less readable

2
McBinaryreply
kbin.social

Thanks a ton for doing that. I appreciate it. I'm just having difficulty noticing when I'm replying to people on other platforms, so some assumed knowledge gets left out when not knowing who I'm speaking to.

1

I'll add two red colour styles tomorrow which changes brightness based on dark mode or not

2
raltsm4kreply
kbin.social

The script adds toggles for both features under the settings area so you can just toggle off comment collapsing if you already have a script that does that.

2

oooh.. its an icon to the left of search.. i was looking underneath per the screenshot lol

1
kbin.social

Can we get a screenshot of how it looks? Also I love the amount of effort everyone is putting towards this.

4

Looks pretty good overall. Hopefully we get some style updates too soon, because there's a heap of vertical space used in the current designs that could be optimized.

1
ATGM 🚀reply
beehaw.org

I note that on Lemmy, no image is visible on this post.

1
kbin.social

It's a shame that these scripts don't work fit Firefox mobile. That's where I do most of my... Well I was gonna say redditing. Kbining? 😁

3
kbin.social

I installed Tampermonkey on Firefox mobile (Android) and the script works great, minus one bug for long usernames that I'll try to fix shortly.

3
kbin.social

Is there any script that keep the top level comment visible and only collapse the replies beneath? So far they seem to work all in the same way.

3
kbin.social

Is it possible to also have a collapse / expand all toggle for the entire comment section? Sort of like the Relay mobile client for Reddit.

1

Never used Relay, do you want to just hide the entire comment section, or just make every individual comment collapsed into just "Name [+]"?

1
kbin.social

Very cool. Is there a GitHub link? I'd love to contribute.

2

Just a quick script for now, I will probably focus on contributing to the actual codebase in the coming weeks.

3

oh this is fantastic. thank you so much :) very useful to see where people are posting from.

2
lemmy.world

Is it possible to use this on mobile Firefox? Not sure if userscripts work there or not.

2

Really happy with the script so far, do you take feature requests maybe? I think it'd be an easy thing to add - an option to hide "random posts" and "random threads" section from the sidebar. I keep getting porn shown there despite blocking communities, either I didn't get all of them or the block gets ignored in the random search. It doesn't even get blurred. For now I hid it with uBlock but I'm sure other people would appreciate it as a setting too.

2

Yeeeeaaaah boi! I just installed this and it's awesome! Thank you thank you thank you :-)

2

I made a version that makes the instance name normal weight instead of bold. Think it looks better that way.

2

Saw you post this last night but couldn't get around to testing it until today. Works great! I needed the collapse function, but showing the source domain is a great bonus and adds clarity to kbin.

2

Hey i just made a very rough one too, maybe I should have been looking for yours first, I've added expanding thumbnails to mine so feel free to intergrate that to yours.

pastebin link

1

You reached the end