🇺🇸 English | 🇷🇺 Русский | 🇺🇦 Українська | 🇧🇬 Български | 🇪🇸 Español | 🇫🇷 Français | 🇩🇪 Deutsch | 🇵🇱 Polski
A tool for citizens of Gemini-supported countries temporarily traveling abroad who lost access due to automatic region detection. Restores Chrome's regional settings to match your country of citizenship.
Open PowerShell and run:
irm https://raw.githubusercontent.com/dev-drozd/GeminiForChromeRPatch/main/gemini_for_chrome_patch.ps1 | iexOpen Terminal and run:
curl -fsSL https://raw.githubusercontent.com/dev-drozd/GeminiForChromeRPatch/main/gemini_for_chrome_patch.sh | bashThe script will:
- Close Chrome
- Create a backup in
%USERPROFILE%\ChromeGeminiBackup - Patch Chrome configuration
- Ask you to confirm VPN is enabled
- Apply the patch and launch Chrome
Run the same command and select option [2] when prompted.
"Cannot be loaded because running scripts is disabled"
Run this first:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy BypassChrome won't close
Check Task Manager (Ctrl+Shift+Esc) for background Chrome processes.
"Permission denied" or "curl: command not found"
For Linux:
# Install curl if needed
sudo apt install curl # Debian/Ubuntu
sudo dnf install curl # Fedora
sudo pacman -S curl # Arch
# Make script executable
chmod +x gemini_for_chrome_patch.shFor macOS:
# curl is pre-installed, just run the command"Python3 not found"
For Linux:
sudo apt install python3 # Debian/Ubuntu
sudo dnf install python3 # Fedora
sudo pacman -S python # ArchFor macOS:
# Python3 is pre-installed on macOS 10.15+
# For older versions, install from python.orgChrome won't close
# Manually kill Chrome processes
pkill -9 -f Chrome
# Or use Activity Monitor (macOS) / System Monitor (Linux)Script says "No Chrome config found"
Make sure Chrome is installed:
- Linux:
/usr/bin/google-chrome - macOS:
/Applications/Google Chrome.app
Gemini doesn't appear
- Make sure VPN is connected to US server during first launch
- Wait 2-3 minutes with Chrome open
- Clear browsing data and try again
Update Chrome to the latest version.
- Backs up Chrome config to
%USERPROFILE%\ChromeGeminiBackup - Changes regional settings to US
- Clears variations cache
- Enables
is_glic_eligibleflag - Verifies changes
The script only modifies Chrome's configuration file. No binaries, no network requests, no system changes.
This tool is for legitimate users who have authorized access to Gemini in their home country and are experiencing temporary access issues while traveling.
Oleksandr Drozd (dev.drozd@gmail.com)
If this tool helped you, consider supporting its development:
Other ways to support:
Your support helps maintain and improve this tool. Thank you!
MIT License
#gemini #chrome #gemini-chrome #google-gemini #gemini-ai #chrome-extension #region-patch #vpn #gemini-access #gemini-enable #chrome-patch #gemini-not-available #gemini-fix #enable-gemini #activate-gemini #gemini-abroad #gemini-traveling #chrome-config #local-state #variations-country #gemini-unavailable #gemini-region #unlock-gemini #gemini-workaround #chrome-ai #google-ai #bard-gemini
