Chromium and Firefox extension for manually set the region and language used by Google Search
- Chromium-based Browser (Google Chrome, Opera, Brave, Vivaldi, Arc, etc.) - Chrome Web Store
- Firefox - Mozilla Add-ons
- Microsoft Edge - Microsoft Edge Addons
- GitHub Releases - Download from releases, enable "Developer Mode" options, and install from "Load Unpacked" options
-
Toolbar pop-up can be used to enable/disable extension, see current region and languages, and entering main settings.
-
On main settings, you can choose region and languages from the table, the default settings is US region with English languages. Click "Save" to save your settings and don't forget to reload your Google Search tabs after it.
Beside user settings, Google Search define region and languange with URL parameter, hl for language, gl for region, with standard, two-letter ISO 3166-1 Alpha-2 format, for example us for United States region and enfor english language. Full lists here
This extension uses declarativeNetRequest API and its slatic rules to intercept the search queries to www.google.com and adds those URL paramaters, allowing language and region to be defined and remembered without logging-in to your account or changing user settings regularly. Practically useful for VPN users or users who simply doesn't want to login when using Google Search.
- Node.js 20+
zipandunzip- Chromium-based and Firefox-based browser for testing
- Clone the Repository
git clone https://github.com/arfshl/googlesearch-force-region.git
cd googlesearch-force-region- Install dependencies
npm install- Build the extension
npm run build # for both chromium and firefox
npm run build:chromium # for chromium
npm run build:firefox # for firefox| Command | Description |
|---|---|
npm run build |
Build extension with .zip format for both chromium and firefox |
npm run build:chromium |
Build extension with .zip format for chromium |
npm run build:firefox |
Build extension with .zip format for firefox |
npm run css |
Build extension options.html and popup.html CSS styling with TailwindCSS |
This extension doesn't use any external services to operate, all functionality are running locally inside your browser, no data is sent or collected by me as developer.
In order to operate, this extension need access to:
- "Block content on any page" -
declarativeNetRequestAPI: For adding region and language URL parameters - "Access browser tabs" / "Read your browsing history" -
chrome.tabs: This is actually just accessing active tabs which openingwww.google.com, for auto-reloading on extensions enable/disable switch, and for open extensions settings page in a new tab - Local extension storage -
chrome.storage.local: Used to store the extension settings, including the enabled/disabled state, selected region, and selected language.





