lnoss / no-google-search-translation

Browser extension that disables the Google Search results auto translation feature. Auto redirect away from Google Translate man-in-the-middle proxy to the original URL page.
https://github.com/lnoss/no-google-search-translation
GNU General Public License v3.0
19 stars 1 forks source link
browser-extension chrome-extension firefox-extension nodejs plasmo typescript

It seems that the wider roll-out of the feature has been cancelled by Google. At least on my side, the feature is no longer offered. I'm seeing similar comments on social networks.

You should be able to uninstall the extension, and maybe come back in a few months when the revert will be reverted! Who knows. It was a short adventure, but it was fun. 🫡

Funny story: Google deleted the topics complaining about this feature, see.


Badge Firefox Badge Chrome GitHub commits since latest release (by SemVer including pre-releases)

No Google Search Auto Translation Logo.

No Google Search Auto Translation is a browser extension that remove the auto translation feature of Google Search. It also detect the Google Translate proxy and redirect you to the original page. The extension is powered by the Plasmo framework.

Pending validation for Edge and Opera extensions stores. Using Edge, Brave, Vivaldi or Opera, you should be able to install it from the Chrome Webstore.

Showcase

Screenshot of the extension in action

Bonus on Firefox: it cleans the tab's navigation history to prevent the back button to redirect you to the Google Translate proxy.

Context

What is the problem?

To help address content and perspective gaps when a user searches in their local language, sometimes Google may translate the title link and snippet of a search result for results that aren't in the language of the search query, when available. https://developers.google.com/search/docs/appearance/translated-results

This feature seems to be more globaly deployed since december 2023 (at least for me and some complaints on social networks), but first occurences of the feature can be found at least in september 2022.

There is no easy way to just disable this feature, so this extension is here to help until Google provide a way to disable it.

Security concerns

Why the extension isn't working?

I don't know!

If not working, please check first that you approved the websites access permissions in the extension settings. Check help pages for Firefox and Chrome. If you are using a Chromium browser, you should be able to follow the Chrome help page.

This fix is hacky, the extension is heavily relying on the structure of the Google Search page. If Google change it, the extension will not work anymore. You might even be just unlucky and the chosen one for a Google Live Experiments. Or maybe just some cross-extensions incompatibilities.

If you find a bug or want to share some feedback, please open an issue. Or even a pull request!

Discussions tab is also open if you want to share your thoughts for more complex topics. For something that can't be resolved in a quick one-shot.

Development

First, you need to install pnpm (or npm ewh!) and run pnpm install (or npm install) to install all dependencies.

Commands

Command Action
pnpm dev:[firefox,chromium] or npm run dev:[browser] Run the development server for hot reload testing targeting either Firefox or Chrome(-ium)
pnpm build or npm run build Build Firefox and Chrome(-ium) production extensions with manifests v3
pnpm build:zip or npm run build:zip Build Firefox and Chrome(-ium) extensions packages and zip
pnpm build:[firefox,chromium,edge,opera]
or npm run build:[browser]
Build the extension package with manifest for the targeted browser
pnpm plasmo help or npm run plasmo help Show CLI Plasmo help

Currently, the extension is only tested on Firefox and Edge. It should work on every Chromium-browser. There is no extension for Safari because I can't test it. If you want to add support for it, feel free to open a pull request.

Project structure

Testing with side-loading

To live test the code, open your browser and load the appropriate development build. For example, if you are developing for Edge, using manifest v3, use: build/chrome-mv3-dev. For Firefox, use build/firefox-mv2-dev.

Here the official documentation pages for the steps to follow:

And here some details from Plasmo framework documentation.

Alternatives

Privacy and search engines

Google Search is not the only search engine on the web If you are concerned about your privacy, you could use:

Some are using Google Search results (like Startpage), others build their own index (like DuckDuckGo), some are mixing. You can find more information on PrivacyTools.io.

User script

If fore some reasons, you don't like browsers extensions (or just mine!), you can use this user script made by David Trapp.

Note that the text Original ansehen needs to be changed based on what language the results are translated to as stated by the user script author. Also, you might want to change the @match value to make it work on the Google Search domain name you use. The script is not bypassing the Google Translate proxy, so you will still be redirected to the Google Translate proxy page traducting the original page.