Skip to content

Repository files navigation

This repository is based on code provided by @lshchong, with permission by email.

Email permission received on 2025-07-01.

You can find the original version in Chrome Extensions Store.

Modifications made by @LuoYunXi.

For a brief introduction to the changes from the original version, see the Chinese README. I don't want to write the English version or just translate them into English now. I'm so tired these days.

The original README (in Chinese) by the original author can be found in the end of the Chinese README


Search Switcher

English | 中文

Quickly switch search engines via the extension button without having to re-enter your search terms.

Usage

Before use it, load the unpacked extension in developer mode to install.

Pin this extension in the extension bar is suggested.

When you want to switch to another engine, just click the extension icon and select an engine.

If the search engine and search term are not currently recognized, the homepage of the search engine will be opened in a new tab.

Configuration

Just modify platform.json to the search engine you want.

Here is a example platform:

{
	"id": "google",
	"name": "Google",
	"iconUrl": "icon/google.svg",
	"urlTemplate": "https://www.google.com/search?q={searchTerm}",
	"searchParam": "q",
	"matchDomains": ["www.google.com", "www.google.com.hk"],
	"homePage": "https://www.google.com"
}
  • id seems to have no effect now, but it is better to keep it.
  • name indicates the name to be displayed in the extension popup.
  • iconUrl can be a local or remote URL.
  • urlTemplate indicates the URL format when you switch to another platforms.
  • searchParam can be a string or null, which indicates the search param for identifying the current platform' search term. If searchParam === null, the search term will parsing via urlTemplate.
  • matchDomains means that if the platform has multiple domain, they can all be identified correctly.
  • homePage as the name(

Privacy statement (by original author)

  • All data is stored only locally on the user and will not be uploaded to any server
  • Only permission to access the search site is requested to identify search terms and platforms
  • No user's search history or personal information will be collected

At Last

Have a nice day.

If some mysterious oriental characters of this extension name or popup are confusing you, just modify them into your own language.

These strings were hardcoded in Chinese in mainfest.json, popup.html and popup.js (Especially Line 1217/1225)

About

A Chromium extension that allows you to switch search engines without re-entering your search terms.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages