Due to the nature of fediverse, you can't just do a "site:lemmy" search as you'd do with reddit (site:reddit.com). I was searching for ways to do it on my firefox browsers and I came to a solution that searches 21 different instances simultaneously, which I consider to be a big part of lemmy (I also include kbin instances). I am using firefox with DDGO (which has a 500-character limit per search query).
There's gonna be a text you will have to copy, I'll just write it once here hidden inside the spoiler:
“URL string”
https://duckduckgo.com/%s (site:lemmy.world |site:lemmy.dbzer0.com |site:programming.dev |site:lemmy.ml |site:mander.xyz |site:feddit.org |site:slrpnk.net |site:lemmy.ca |site:beehaw.org |site:lemmy.blahaj.zone |site:discuss.tchncs.de |site:sh.itjust.works |site:lemm.ee |site:fedia.io |site:sopuli.xyz |site:lemmy.one |site:feddit.uk |site:midwest.social |site:infosec.pub |site:ttrpg.network |site:lemdro.id)
“URL string” (Extra-Instances)
https://duckduckgo.com/%s (site:lemmynsfw.com |site:hexbear.net |site:lemmygrad.ml |site:lemmy.sdf.org |site:pawb.social |site:startrek.website |site:discuss.online |site:awful.systems |site:yiffit.net |site:feddit.it |site:lemmy.kde.social |site:vegantheoryclub.org |site:mas.to |site:tech.lgbt |site:mastodon.social |site:pixelfed.social |site:pawoo.net |site:techhub.social)
~~OLD STRING~~
~~https://duckduckgo.com/%s (site:lemmy.world |site:kbin.social |site:lemm.ee |site:programming.dev |site:lemmy.ml |site:sh.itjust.works |site:feddit.de |site:lemmy.ca |site:beehaw.org |site:lemmy.dbzer0.com |site:lemmy.blahaj.zone |site:discuss.tchncs.de |site:sopuli.xyz |site:lemmy.one |site:feddit.uk |site:midwest.social |site:infosec.pub |site:slrpnk.net |site:mander.xyz |site:ttrpg.network |site:lemdro.id)
~~
Replace it when I ask you to write the "URL string".
There are different processes, depending on the type of device/OS (computer, mobile/android etc.). I will list some of them and you can pick the one you want:
-
Firefox Android: Go to search settings->manage alternative search engines->add search engine. Pick a name you want (eg.
Lemmy
) and on the search string URL paste the "URL string" I've written above. Now next time you want to search Lemmy, just select "Lemmy" as your search engine. -
Firefox Computer V1: Create a bookmark with a name you want (eg. Lemmy search). In the URL field paste the "URL string" I've written above. In the keyword field add a keyword to use as a prefix to your searches (eg.
@l
). Now to search Lemmy, you can type@l "random search"
in the address bar. -
Firefox Computer V2: Open a new tab and type
about:config
in the address bar. In the search box type:browser.urlbar.update2.engineAliasRefresh
Click on the little+
symbol on the right. Go to firefox Settings->Search or enter this in the address bar:about:preferences#search
In the "Search Shortcuts" section you should notice a new "Add" button. Just like on android, press "Add", insert a name (eg.Lemmy
), add the "URL string" from above and once you're done you can add a keyword (eg.@lemmy
). If you want, you can now go back and disablebrowser.urlbar.update2.engineAliasRefresh
(press the trash can icon) (I don't know if this will crash anything).
I really wanted to search lemmy, but not being able to do a simple site:lemmy detered me from doing so.
So there you have it! The added text is 412 characters which leaves 88 characters for your searches. You can change the url to add/remove instances you want. If anyone can improve it please (like shrinking the url or if you manage to search all instances) it will be appreciated.
Credits:
-
The idea came from this site (which I found on lemmy): https://fedi-search.com/ I asked it to search lemmy on ddgo and gave me a similar string to the one I have above, only limited to fewer instances.
-
I found the biggest instances I wanted to include in the search using the csv from this github page: https://github.com/maltfield/awesome-lemmy-instances/blob/main/awesome-lemmy-instances.csv
-
Lastly, I found the computer process from 2 answers on this stackoverflow question: https://superuser.com/questions/7327/how-to-add-a-custom-search-engine-to-firefox
If you use Kagi, you can add this "lens" to limit search to these 10 largest Lemmy instances: https://kagi.com/lenses/qB39IMQCFQRpBL8fPKGmQ1wMw9nWGHNc
Instances: lemmy.world, lemmy.ml, kbin.social, lemm.ee, programming.dev, sh.itjust.works, lemmy.ca, beehaw.org, lemmy.dbzer0.com, lemmy.blahaj.zone . I'd add more, but the limit is 10. You can edit the instances list when you save the lens.
Oooooh this is neat. Thanks!
Thanks, I was wondering whether this could be achieved using lenses
How do you find Kagi? I’ve seen it popping up more and more recently
I suggest going straight to https://kagi.com, or you can also use your current search engine to find it using query "kagi".
But to be serious, it's great. The search results themselves feel like how google used to feel years ago before the enshittification, and there are many useful features, like changing priority of different websites. I for example have removed all pinterest sites, reduced instagram and increased wikipedia weighting. They have a free 200 search trial, give it a go!
I'm a fan so far myself. It's not always perfect but you can take your search to any of the other popular search engines right from Kagi if you need to.
It's got a quick answer button which is using one of them new fangled AIs to pull an answer for your search out of the results, and then lists the sources for each bit it's telling you. You can also "summarize a page" for any of the results.
You have these lenses that people were mentioning and one of the default ones that I use all the time is "forums". So if my results are a bunch of shitty articles I click that and it shows me only sites like reddit instead.
I'm actually still evaluating it. It can returns results normally buried on google, and you can block or prioritize sites permanently on your search settings. So far it's pretty good, but it's still too early for me to decide if it's actually worth the money, though I have signed up for unlimited plan so I can review it further. Google and Bing have this perverse incentive where making their search a more ineffective would result in large increase in revenue because you'll search more and thus see more ads. The premise of paid search engine that don't have any incentive to make you do more searches seems appealing to me. In fact, Kagi has huge incentive to make their users search as little as possible (and thus must deliver good search result) in order to be profitable because they said it them cost 1.5 cent per search.
There is a trial account with no credit card required that can be used for 200 searches.