Bookmark tip for Lemmy in Firefox

cyanide@lemmy.world to Lemmy.World Announcements@lemmy.world – 147 points –

Been using this one for over a decade. Works with Firefox's bookmark keywords feature.

Make a new bookmark, set the link as follows:

https://lemmy.world/c/%s (or your own Lemmy instance)

And in the "Keyword" field, use "c" or "lemmy" or whatever.

Now, when you want to visit a specific Lemmy community on your home instance, you can simply type:

"c community_name" in the address bar, or "lemmy community_name" in Firefox and it will open the community.

13

That's pretty slick. I didn't know Firefox bookmarks had anything like that feature. Thanks for sharing!

It's using the search keyword feature, where you can right-click on any search field and do this exact thing. Works with most search fields anywhere. I just used it to substitute parts of the URL.

This is brilliant!

EDIT: You might prefer %S to %s if you don't want special characters to be escaped. %s will turn the @ character into %40 in the URL, which means that if you write something like reddit@lemmy.ml it will open lemmy.world/c/reddit%40lemmy.ml and it will give you a 404: couldnt_find_community. However, %S works as it doesn't do URL encoding.

Now that's a fantastic tip. Didn't know firefox was capable of convience like that through bookmarks.

Chrome has something similar but you have to set it up as a custom search engine

This works in Chrome as well, also this is a nice (firefox) addon to go along with it so you can select text and right click to use one of your keywords.

You can also combine it with bookmarklets for more advanced things like

javascript:void(location.href='http://www.google.com/search?&q=site:'+location.href.split(%22/%22)[2]+'+%s')

Which lets you search the current site using google.