this post was submitted on 18 Jun 2023
39 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
 

Download it from greasyfork

This userscript for kbin enhances the comment section adjusting the layout and adding a line to the left of each comment and its replies that lets you collapse them. The design is inspired by some custom subreddit stylesheets, and new reddit surprisingly enough (you know what they say about broken clocks)

Personally, I think this is the best way to handle collapsing comments here's a screenshot.

A video of it in action

If you don't have a userscript manager extension installed, you can install Tampermonkey, and then open the greasyfork link.

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

I still get that the grant method isn't supported with that command. I'm running Userscripts in Safari. No worries, I was able to get another one working - it's not as nice as the one you made but it's getting the job done for now.

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

If you remove all of the @grant lines, as well as this code (from lines 328 to 342), it should work:

    let gmc = new GM_config({
        'id': 'improved-collapsible-comments',
        'title': 'Improved Collapsible Comments',
        'fields': {
            'headerToggle': {
                'label': 'Toggle replies by clicking header (WIP, not functional)',
                'type': 'checkbox',
                'default': true
            }
        }
    });

    GM_registerMenuCommand('Settings', () => {
        gmc.open();
    });

I'll have to figure out a way to get configuration to work with Userscripts for safari once I start adding that

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

I just updated it to remove all of the stuff that's incompatible with Userscripts for safari, I'll have to figure out another method for configuration

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

It works great! Thanks so much