OC Floating Subs List - a collapsible subscriptions panel with search, sorting, and magazine pinning

https://i.imgur.com/va0ph9d.png

Changelog

0.8

  • Made cache and pinned subs user-dependent for those with multiple accounts
  • Made subscription list scraping a little more robust
  • Added loading and error indicators

0.7

  • Added a button to manually refresh the cache
  • Made alphabetical sorting default

0.6

0.5

  • Pins! Hover over a magazine and click the pin icon to make it always appear in a special section at the top of the list.
  • Panel now scrolls with the view even if sticky navbar is off

0.4

  • Now uses cache for faster loading, refreshes every 5 minutes or when you sub/unsub from a magazine
  • Added button to collapse the subscription pane
  • Fixed bug where only the first page of subscriptions would be read

0.3

  • Added filter by name

0.2

  • Added buttons to sort by date (default) or alphabetically
Madison_rogue,
Madison_rogue avatar

This is so helpful...thanks!!!

L-N-Owhere,
L-N-Owhere avatar

Nice work, thanks! I am not seeing a Pin icon when hovering over a magazine name in the subscribed panel list. I am using the Vivaldi browser, and version 0.6.1 of Floating Subs List.

RodPhoto,
RodPhoto avatar

It appears, very faintly, over the icon of the magazine, to the left of the text. Nothing?

L-N-Owhere,
L-N-Owhere avatar

@RodPhoto , @raltsm4k

Thanks! I can now see and click the Pin when hovering over the left side magazine's icon.

cultsuperstar, (edited )

Anyone having issues with this script now? It seemed to be working last night but now my subs list isn't populated. The Kbin Subscriptions Panel script seems to be working.

Edit: Nevermind, they started showing up again. Weird.

McBinary,
McBinary avatar

I had this same problem, but it turned out to be server lag issues. It only happened while kbin.social was having some serious issues loading.

LollerCorleone,
LollerCorleone avatar

This works really well and looks great! Thank you for making this!

cultsuperstar, (edited )

Thanks for this! It doesn't seem to show all my subscriptions though from Kbin, or subscriptions from other servers. Is that possible? Sorry, I realize these are all federated so posts on one should populate on others, so scratch that. I know I've subbed to other communities from my /All, so I wasn't sure if those communities show up in my sub list as Kbin mags.

But, I still don't see at least one Kbin mag that I've subbed to in my floating sub list.

McBinary,
McBinary avatar

@raltsm4k
So, the subscription list is paginated, and it looks like only the subs on the first page make it onto the list. Is that intended? I don't think we can adjust where subs land in the pages by default.

yGns,
yGns avatar

Having the same issue with both Floating Subs List and Kbin Subscriptions Panel. Unluckily for me, my most visited magazines are on the 2nd page.

raltsm4k,
raltsm4k avatar

@McBinary @yGns @cultsuperstar
Just pushed an update that fixes this!

cultsuperstar,

Awesome, thank you! Looks like it's pulling in everything now. And I like the "@lemmy.ml" tag! :D

minnieo,
minnieo avatar

@raltsm4k i also love the tags showing where the subs originate from! thank you for adding that detail

marcf,
marcf avatar

There's a range of browser window widths where content is fully expanded, but the Subscribed sidebar stays rooted to the left. Eventually, at wider widths, the sidebar will detach and content moves to the centre, but it's never properly centred.

Crayon8027,
Crayon8027 avatar
Crayon8027, (edited )
Crayon8027 avatar

If "sticky navbar" is turned off the subscriptions box disappears out of view if you scroll too far down. I noticed on version 0.3 if I changed -

   position: on line 85 from "absolute" to "fixed"
   top: on line 86 from "100%" to "9.5%"  (9.5% didn't overlap with header and was aligned nicely across the top)
   max-height: on line 89 from "100vh" to "90vh" - "95vh" (I use 93vh) then the sidebar stays fixed as you scroll. 

then the sidebar stays fixed in place as you scroll, even with sticky-navbar turned off.

The only thing I don't like is that with the fixed sidebar it will overlap the footer at the bottom. I'm not sure how to make it not overlap, I literally just started googling this userscript stuff like 45 minutes ago. I'm guessing making the z-value of the footer a higher priority then the sidebar would make the sidebar scroll beneath the footer, but I don't know.

raltsm4k,
raltsm4k avatar

@Crayon8027
Pushed an update that fixes this - though I plan to add a settings menu soon that would let you choose to have it floating or scroll with the page, among other things.

JohnEdwa,
JohnEdwa avatar

Nice, I've been wanting for something like this.

I noticed in your screenshot you don't have the Kbin top bar enabled (settings gear on the sidebar -> General -> Show top bar). That bar has a link called "Subscribed" that takes you to https://kbin.social/sub which I think you could link to from the your "Subscribed" title. The second thing for would be copying the toggle from old reddit (might be a RES feature): the first item is called "My subreddits" which toggles showing the subscriptions as a floating element so that it doesn't have to be visible all the time. Check the kbin enhancement script as to how you could add that as an option integrated to the Kbin settings panel if you want to so that users that do want it showing all the time can still do it.

exscape,
exscape avatar

Hm, some kind of caching might be a good idea to add. Granted it might not matter as long as few people use it, but it does double the load from users with the script, since every page load causes a second page to load.

Another feature that would be nice is to be able to choose which communities appear. I currently have more than a screen worth but most are ones I don't really want to have there.
And perhaps also rename them (to make Lemmy communities a bit less ugly, for example I have "askelectronics@discuss...." and "stargate@lemmy.fmhy...." showing up now.

Hmm... I might work on this a bit, since I realize this is a lot to ask :-) If that's alright.
I'm not an experienced userscript dev though.

raltsm4k,
raltsm4k avatar

Added a cache feature in the latest version, hope it helps :)

thesoloist,
thesoloist avatar

this is cool. any way to have it scroll with the page rather than in a fixed position?

DarkenLM,

@raltsm4k I've created a version that adds collapse/expand and search functions and (hopefully) fixes @marcf's problem. I can send you the code if you'd like to update your version.

raltsm4k,
raltsm4k avatar

That'd be appreciated! I actually just finished coding a search feature a few minutes ago but the other changes I'd be happy to implement.

marcf,
marcf avatar

Just what I was looking for – thanks! Unfortunately, seems to break when sidebar is positioned left in kbin settings. Subscriptions get pushed below the content.

raltsm4k, (edited )
raltsm4k avatar

Weird, that doesn't happen on my end, would you mind sharing your browser and any other styles/scripts you're running?
edit: Oh, it looks like you're using the other subscription panel script that was posted - mine is the one linked from this post.

marcf,
marcf avatar

Wooooops, yup! Sorry about that. Guess I'll go post feedback for their script then :P

With yours, when the main kbin sidebar is aligned left, you end up with two sidebars, then the content block. Would it be poss to integrate Subscribed with the kbin sidebar?

ironic_elk,

So many nice little stuff like this for desktop even though im 90% on my phone. Still commenting so I can find this later when I'm desktop as this looks nice!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • kbinStyles
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • JUstTest
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ethstaker
  • osvaldo12
  • modclub
  • normalnudes
  • provamag3
  • tester
  • anitta
  • Leos
  • megavids
  • lostlight
  • All magazines