mullvad / mullvad-browser

Privacy-focused browser for Linux, macOS and Windows. Made in collaboration between @torproject and @mullvad
https://mullvad.net/browser
1.28k stars 25 forks source link

Allow Google as a search engine? #179

Closed pczern closed 11 months ago

pczern commented 12 months ago

When I click in the URL bar, it is not possible to add Google to the search engines. I know it's a private browser and Google is not too private, but using this browser is still more private than using any other browser even if we'd use Google from time to time?

ruihildt commented 12 months ago

When I click in the URL bar, it is not possible to add Google to the search engines.

It seems that Google doesn't provide an OpenSearch standard mechanism to add it to Firefox based browser.

They do provide it for YouTube, so this seems intentional.

We will review internally whether we should include it to the default list of search engines and in the meantime you probably can use a webextension to add Google as a default search engine.

jonaharagon commented 11 months ago

FWIW: It's possible to add Google as a keyword search engine (i.e. typing @g or whatever before your query) without installing a webextension, but you can't set it as the default without a webextension:

VELl4pPqhAYGYvjl

Just create a bookmark for the URL https://www.google.com/search?q=%s, then edit that bookmark and add whatever keyword you want:

Fg3NDfvyNsyeZAZq

Also, I kinda doubt anyone's made a webextension for Google seeing as every other browser bundles Google by default...

ruihildt commented 11 months ago

@jonaharagon There are actually some extensions doing just that, but it's hard to recommend a third party extension seemingly from a "random" person, which could be updated and changed at any point in time.

For completedness, Google has an opensearch file available, it's just not linked on their homepage. https://www.google.com/searchdomaincheck?format=opensearch

ruihildt commented 11 months ago

Another relatively simple approach is to create a simple html page and link in its section the Google opensearch document. This way, users could right-click on the page and add it.

(This is the approach taken by https://addons.mozilla.org/en-US/firefox/addon/search-engines-helper/)

ruihildt commented 11 months ago

Right now there's no plan to add Google Search as part of the default search engines.

Here's a zip containing an HTML file (since I can't add an HTML file to Github comments) you can download and open in Mullvad Browser to add Google to the list of available search engines.

google-search.zip

And here's the full HTML code:

<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8" />
    <title>Add Google as a default search engine</title>
    <link
      rel="search"
      type="application/opensearchdescription+xml"
      href="[https://www.google.com/searchdomaincheck?format=opensearch](view-source:https://www.google.com/searchdomaincheck?format=opensearch)"
      title="Google Search" />
  </head>
  <body>
    <main>
      <h1>How to add Google Search Firefox-based browsers</h1>
      <ol>
        <li>Right click in your URL bar.</li>
        <li>Click "Add Google".</li>
        <li>Google has now been added to the list of search engines</li>
        <li
          >To change your default search engine, go to "Menu" > "Settings" >
          "Search" > "Default Search Engine"</li
        >
      </ol>
      <p>Note: if Google Search is already an option, when you right-click, nothing will show up</p>
    </main>
  </body>
</html>