[UserScript] Simple old Lemmy community bar customisation (updated again) - eviltoast

UPDATES BELOW

So I browse on the desktop using the mlmym/old.lemmy client (e.g. http://old.lemmy.world) because old habits die hard.

One of the many things I found myself missing from RES & Reddit was the ability to customise the community bar at the top of the page to contain some links to my favourite communities. I had a spare minute this morning to throw together a userscript for just that:

Here’s a pastebin with the script. Create a new userscript in tampermonkey (or whatever userscript plugin you use), drop the code in, change the array of communities at the top to be the ones you want prepending to the list, and you should be good.

Make sure to add the server suffix to any communities from other instances and if you want to use this on another instance other than lemmy.world, just change the match rule in the userscript header comment.

I didn’t host on greasyfork as I’m probably not going to make any further changes, and I’d need to come up with something a bit more sophisticated than an array of communities. I’ll update this post if I ever change my mind on that

Update

So I guess I wasn’t happy with leaving it alone:

Here it is on greasyfork https://greasyfork.org/en/scripts/474756-lemmy-mlmym-community-bar-customisation

I added localStorage and a simple config GUI to configure the list of favourites now, no reordering yet (without just removing and re-adding in a different order), but I imagine I’ll end up adding that in time

Update 2

And another update:

I’ve just updated GreasyFork with 0.3

  • Added reordering
  • Added background fade and background click to close
  • Added favourite/unfavourite button to the community sidebar