News for hackers. Stuff that matters.
Re:Userscripts Are Fun and Are Still Very Much Relevant by setzer22 on Friday April 17, 2020 @07:37AM (#22898113)
IMO it's not about "going back to" anywhere. It's not as if we couldn't use different search engines for different queries.

This all-or-nothing mentality of migrating away from Google (the search engine) seems flawed to me. It's still better for your privacy doing half of your queries using Google, instead of doing all of them.

By the way, no offense intended! We're all free to pick our tools.

Re:Userscripts Are Fun and Are Still Very Much Relevant by Waterluvian on Friday April 17, 2020 @07:41AM (#22898125)
I partly agree. I don't want it to be all or nothing. But the way browsers are set up with the "default search", it somwhat is.

Ooooh I would love to be able to custom route searches depending on rules.

Re:Userscripts Are Fun and Are Still Very Much Relevant by thanksforfish on Friday April 17, 2020 @08:03AM (#22898263)
DDG ends up working well as the default search for me. The ability to type my query and then decide if I want to use DDG or Google doesn't require me to take my hands of the keyboard. I just add a g! and I'm switched off my default. So it's a great default with an ergonomic way to switch to a different engine.

Google as default requires me to use the browser UX to change the engine, which I believe requires using the mouse or hitting tab or arrow keys. Less ergonomic.

Re:Userscripts Are Fun and Are Still Very Much Relevant by worble on Friday April 17, 2020 @08:17AM (#22898334)
Firefox supports this, go into Settings -> Search and set a keyword for the search engine.

For example, if you set the keyword for DuckDuckGo to "ddg" and Google to "go", then typing "ddg <your query>" into the topbar will search DuckDuckGo, and typing "go <your query>" will search Google.

Re:Userscripts Are Fun and Are Still Very Much Relevant by shawxe on Friday April 17, 2020 @08:30AM (#22898410)
DuckDuckGo itself supports this. Just start a query with !g to have it routed to Google. For example, "!g search on Google" would bring you to the Google search results page for "search on Google."

DuckDuckGo supports several other commands like this, which they refer to as "bangs."

https://duckduckgo.com/bang

Re:Userscripts Are Fun and Are Still Very Much Relevant by newscracker on Friday April 17, 2020 @10:53AM (#22899456)
The difference between the Firefox setting described by the GP and the DDG bang commands you mentioned is that the Firefox setting is close to zero latency since it’s handled by the browser. The bang commands need to go to DDG and then come back as a redirect, taking a few seconds more. On the other hand, the DDG bang commands work the same across other browsers too.
Re:Userscripts Are Fun and Are Still Very Much Relevant by samb1729 on Friday April 17, 2020 @08:39AM (#22898456)
A query need not be started with a bang. Just add 'g!' or 'yt!' anywhere in your search terms and it should work fine.
Re:Userscripts Are Fun and Are Still Very Much Relevant by Izkata on Friday April 17, 2020 @11:13AM (#22899697)
Just as an aside, "bang" has long also been a term for "!" itself - hence the two characters starting shell scripts, "#!", being called "hashbang".
Re:Userscripts Are Fun and Are Still Very Much Relevant by MiniGod on Friday April 17, 2020 @09:29AM (#22898801)
You can set a keyword for any bookmark. Firefox replaces %s with your query. Simply bookmark the search result page of any website, replace the query with %s and set the keyword for the bookmark.

Doesn't have to be search either. For instance, I use it for the nodejs docs, and npm packages too: "https://nodejs.org/api/%s.html" and "https://www.npmjs.com/package/%s". So I can type "node fs" open the fs docs for node, or "npm fs-extra" to look up the docs for "fs-extra" package on npm.

Re:Userscripts Are Fun and Are Still Very Much Relevant by nieve on Friday April 17, 2020 @08:34PM (#22904320)
Even easier, Firefox has a right click menu option for form fields it think might be searches to add the search keyword directly.
Re:Userscripts Are Fun and Are Still Very Much Relevant by cerberusss on Friday April 17, 2020 @08:41AM (#22898466)
I've set Firefox its default search engine to DDG. Then if the search results are unsatisfying, I search again but now prepend the search with !g for Google, or !gi for Google Images.
Re:Userscripts Are Fun and Are Still Very Much Relevant by yjftsjthsd-h on Friday April 17, 2020 @12:34PM (#22900451)
Fwiw, you don't need to prepend it; you can put it anywhere in the query
Re:Userscripts Are Fun and Are Still Very Much Relevant by cerberusss on Saturday April 18, 2020 @01:12AM (#22905483)
Oh really? Especially on mobile, that's useful to know, thanks!