One of my most wanted features as of late has been for the channel select menu to have my subscribed magazines and liked collections. Right now, it just contains some general feeds, but I thought it’d be super useful to also have your mags and collections there for easy access! However, given that Kbin development priorities are currently elsewhere, I’d try to implement something myself for the time being.

This userscript does exactly what the title says. All of the magazines you’ve subscribed to and the collections you’ve liked are now in the channel select menu that you can find in the top right. This should make getting to your favorite mags and collections a lot more convenient.

Download here

Given that this is my first time making a userscript and that I made this in a day, there are probably (definitely) a few bugs. If you find any, please let me know.

  • Pamasich@kbin.social
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    11 months ago

    Thanks, this is the best implementation idea for this I’ve seen yet imo, will definitely be using this from now on.

    I haven’t found any bugs yet, but I’d like to request two future improvements:

    • Changing the order of magazines and collections
    Details

    I have like three collections and a ton of magazines, so having to scroll through all the magazines to reach the collections is a bit of a pain. It’s still much easier than before this script, but it would be even better if I could move the collections above the magazines.
    On the other hand, someone else might have the opposite situation and would prefer it the way it currently is, so unlike the other user I’m not asking you to just swap the order.
    I think the ideal solution would be adding a setting somewhere to determine which comes first. So every user can tailor the functionality to their needs.

    • Support for turbo mode
    Details

    Ernest added turbo as an optional mode in the past months (you can find it in the sidebar options). It turns the site into a single page experience, which means kbin.social links don’t open the website anew entirely but rather replace the page content, including the changes your script makes. This cuts down on loading time, but it also causes scripts to break.

    It would be great if the script were to support turbo mode eventually, especially if Ernest makes it the standard in the future (it is marked as experimental currently, so that’s probably the eventual intention).

    To do so, you’d have to attach a MutationListener to the body element like I did here. But that will run many times more than just on navigation, so you’d also have to ensure your code does support being run multiple times without breaking.