343
submitted 11 months ago* (last edited 11 months ago) by BlastboomStrice@mander.xyz to c/youshouldknow@lemmy.world

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: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 disable browser.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:

you are viewing a single comment's thread
view the rest of the comments
[-] ono@lemmy.ca 7 points 11 months ago

This seems like a good candidate for a bookmarklet that would append the (site:...) parts to an existing DuckDuckGo search result URL. Then you could just do a normal search followed by clicking the bookmarklet.

this post was submitted on 11 Dec 2023
343 points (100.0% liked)

You Should Know

33088 readers
238 users here now

YSK - for all the things that can make your life easier!

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must begin with YSK.

All posts must begin with YSK. If you're a Mastodon user, then include YSK after @youshouldknow. This is a community to share tips and tricks that will help you improve your life.



Rule 2- Your post body text must include the reason "Why" YSK:

**In your post's text body, you must include the reason "Why" YSK: It’s helpful for readability, and informs readers about the importance of the content. **



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That's it.



Rule 5- No baiting or sealioning or promoting an agenda.

Posts and comments which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding non-YSK posts.

Provided it is about the community itself, you may post non-YSK posts using the [META] tag on your post title.



Rule 7- You can't harass or disturb other members.

If you harass or discriminate against any individual member, you will be removed.

If you are a member, sympathizer or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people and you were provably vocal about your hate, then you will be banned on sight.

For further explanation, clarification and feedback about this rule, you may follow this link.



Rule 8- All comments should try to stay relevant to their parent content.



Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- The majority of bots aren't allowed to participate here.

Unless included in our Whitelist for Bots, your bot will not be allowed to participate in this community. To have your bot whitelisted, please contact the moderators for a short review.



Partnered Communities:

You can view our partnered communities list by following this link. To partner with our community and be included, you are free to message the moderators or comment on a pinned post.

Community Moderation

For inquiry on becoming a moderator of this community, you may comment on the pinned post of the time, or simply shoot a message to the current moderators.

Credits

Our icon(masterpiece) was made by @clen15!

founded 1 year ago
MODERATORS