I made a Firefox extension for more easily navigating to Lemmy communities from the browser address bar

tl;dr: With Lemmy Go you type lg beekeeping on the address bar and it takes you to the most popular beekeeping community, or you can pick one from the given suggestions.

https://addons.mozilla.org/firefox/addon/lemmy-go/

https://chrome.google.com/webstore/detail/lemmy-go/amgdefojimfhhbdphmlbljkgohoeldaf

https://github.com/Raicuparta/lemmy-go#readme

Why

On Reddit, I had a simple search keyword for navigating directly to subreddits, where I could just type r firefox and be taken to reddit.com/r/firefox.

I wanted to have the same behavior for Lemmy, but the Fediverse makes this a lot more complicated.

So I made Lemmy Go to try and make it as simple as possible to jump to a community, or even find new ones more easily.

It’s still a work in progress, so it might be a bit unstable and missing a bunch of features. But I’ve been using it myself for a few days, and it’s already pretty helpful.

Usage

Type lg followed by a space (some browsers also accept tab instead), and then type the name of the community you’re looking for.

Example: lg linux

Lemmy Go will search its database for any community that has the text linux in its name (e.g. linux_gaming) or title (Linux Gaming).

If you just type a community name and press enter, Lemmy Go will take you to the most popular community from that list.

If you don’t press enter right away, you will be shown a list of communities that match that query. You can then select the specific one you want.

Preferred Instance

If you set your preferred instance in the user settings (click the extension icon), Lemmy Go will try its best to navigate to that community in your preferred instance, although this isn’t always possible (in which case Lemmy Go will just navigate to the remote instance instead).

For instance, if your preferred instance is set to lemmy.ml and you select firefox@lemmy.world, Lemmy Go will take you to lemmy.ml/c/firefox@lemmy.world.

But if lemmy.ml blocks the lemmy.world instance, then Lemmy Go will take you to lemmy.world/c/firefox instead.

Read the readme on GitHub for more information about how Lemmy Go works

giant_smeeg,

Great idea, I wish there was an easy way to bring the communites on the main page up the top.

Raicuparta,

Could you expand on that? What do you mean by communities on the main page? I want to provide different ways to sort the communities.

Also, feel free to open issues on GitHub with suggestions and bug reports.

giant_smeeg,

Sorry my suggestion wasn’t really in relation to your plugin, more something I’d like someone to make another plugin for.

But what I meant was on the desktop site main page. To see your subbed communities you have to scroll down past trending and info about your instance. I wish I could have the list at the top.

Raicuparta,

Ah no worries. That’s the kind of thing you can fix by just adjusting CSS. Learning a bit of CSS is really useful for that reason.

I had a quick look, and one easy way to do what you want is using an extension like Stylus, and then creating a new style with this CSS:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">@-</span><span style="color:#63a35c;">moz-document</span><span style="color:#323232;"> domain("lemmy.</span><span style="color:#795da3;">world</span><span style="color:#323232;">") {
</span><span style="color:#323232;">    #sidebarContainer {
</span><span style="color:#323232;">        </span><span style="color:#0086b3;">display</span><span style="color:#323232;">: flex;
</span><span style="color:#323232;">        </span><span style="color:#0086b3;">flex-direction</span><span style="color:#323232;">: column-reverse;
</span><span style="color:#323232;">    }
</span><span style="color:#323232;">}
</span>

Just keep in mind that there’s a good chance this will stop working if the Lemmy frontend updates.

giant_smeeg,

Wicked thanks! is this possible in ublock origin? I try keep my add-ons to a minimum.

wmrch,

That is such a great idea! Thanks for sharing, will give it a try.

lvxferre,
@lvxferre@lemmy.ml avatar

Awesome - simple and it does what it needs to, no fuss.

jjffnn,

Lemmy Go will search its database for any community that has the text firefox in its name (e.g. linux_gaming) or title (Linux Gaming).

Is this an typing error or am i misunderstanding something?
If i write lg firefox why would linux gaming show up?
But cool add-on non the less. I’m looking forward to trying it.

Raicuparta,

woops, lemme fix that

synodic,

*Lemmy fix that.

Cool extension! Thank you

jjffnn,

Awesome.

I couldn’t seem to find any info on the github, so i’ll just ask you here.
How is the database populated? Will it be possible to add missing communities manually?

Raicuparta,

This is where the data comes from: github.com/Raicuparta/lemmy-community-crawlerThere’s currently no way to add missing communities manually, but I’ll add it to the todo list. But of course if you link any instance to one of the instances that this database crawls, eventually it will show up in the list.

jjffnn,

Okay cool. I’ll have a closer look at the code at some point.
I might absolutely be wrong as i know nothing about making extensions. But from my short glimpse at it, it looks like it just crawls ~300 named instances from a list and adds up to 50 communities from each to the database. And that it does so as often as you’ve set it to run.
If i’m right (and i’m probably not), wouldn’t that drastically limit the capabilities of the extension?
Or are those named instances basically carying all of the fediverse?
I know you might be the wrong person to ask as you just adapted the crawler, i’m just curious and like poking my nose in to places it doesn’t belong. 😁

Raicuparta,

It’s 50 communities per page. It gets every community from every instance linked by one of the instances in the list. So just linking some instance to lemmy.ml or lemmy.world will eventually make it show up in this database.

jjffnn,

That makes so much more sense. Thanks for explaining!

sudo,

Using the lc keyword to find Firefox communities on Lemmy

Your screenshot and the alt text mention ‘lc’ not ‘lg’ as well. Neat add-on but some time spent actually reviewing what you’re publishing would well spent.

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