this post was submitted on 08 Jul 2023
56 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
 

Time for a new feature update for KUP. This time I'm introducing bookmarking functionality which adds a new bookmark menu to the toolbar where you can save articles for later.

Note that the bookmarks are saved locally on the device and is mainly designed as a way to keep a reading list rather than a permanent storage of articles.

What is this?

This is a collection of hacks, fixes, enhancements and experiments that I have been tinkering with since I've joined Kbin, neatly packaged into one behemoth of a userscript.

Updates

0.4.0

Bookmarks

Click on the new bookmark button in the footer underneath each article to save it to your bookmarks.

A new button has been added to the toolbar which brings up a modal with all your stored bookmarks. Click on the checkmark next to the bookmark to remove it.

Compatibility with other scripts

The new bookmarks modal listens to the custom window event "hide-all-modals" for compatibility with other userscripts (like Kbin Subscriptions Panel). Dispatching that event will hide the bookmarks modal if it's open.

0.4.1

  • Fixed undefined magazine name.

0.4.2

  • Improved bookmarks mobile styling.
  • Moved bookmarks menu button to mobile menu for small devices. Tap the hamburger menu to access it.

0.4.3

  • Bookmarks Mobile tweaks.
  • Bookmarks Resetting settings now also resets bookmarks.

0.4.4

  • Fixed auto preview unnecessarily reloading.
  • Fixed compatibility with new version of Kbin where the KUP style settings panel has been ported to the core project.

0.4.5

Fixed numerous bugs related to recent changes in Kbin

  • Fixed broken bookmarks button
  • *Alt UI Fixed broken boost button

Screenshots

Bookmark modal (0.4.0)

you are viewing a single comment's thread
view the rest of the comments
[–] mizzyc@kbin.social 2 points 1 year ago (1 children)

Hey @Perry! First of all, congrats again for the great work! Ernest should definitely hire you hahaha

I have a question and an UI suggestion:

• Where are the bookmarks stored? I thought it's probably at my browser's cache, so it wouldn't sync between mobile and desktop, right?

• In mobile (at least on Firefox Nightly) the text size of the title and the "No bookmarks" text at the modal looks really huge! My suggestion is to reduce it a little to be more compatible with Kbin's small fonts :)

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

Thanks!

  1. They are stored in local storage (essentially cookies) as "kup-bookmarks". You're right, since it's only stored locally on your device, they won't sync between different devices. Potentially, I could try to add a way to at least export the bookmarks, but that would be quite an extensive amount of work to do. As it is now, see it more as temporary "read it later" list than a full-blown permanent archive of articles.

Note that removing bookmarks will also remove them from local storage, so there shouldn't be any trace left behind. Disabling the bookmarks feature will however currently not empty the bookmarks list (it essentially just hides the button), so for maximum privacy, you might want to remove all bookmarks before disabling it if that is a concern. I'll probably add a button to the settings panel to clear the bookmarks later.

  1. That should hopefully be fixed now in 0.4.2!
[–] mizzyc@kbin.social 1 points 1 year ago

Potentially, I could try to add a way to at least export the bookmarks, but that would be quite an extensive amount of work to do.

To be honest, to me it looks like too much work for something that's not a crucial feature. I just asked to understand a bit better what you did there hehe