A script tool to fix the missing "Ask Gemini" (or Glic/Gemini sidebar) icon in the top right corner of Google Chrome.
Due to changes in Google Chrome's sidebar management logic, or regional policy restrictions in some locations, the Gemini sidebar icon may be hidden or unpinned.
This tool resolves the issue by:
- Modifying
variations_permanent_consistency_countryfromcntousin the configuration to bypass regional restrictions. - Setting
is_glic_eligibletotrueacross all Chrome profiles to force-enable the Glic/Gemini sidebar feature.
Please ensure you completely close Google Chrome before running the script (check the system tray or background tasks).
Open PowerShell and copy-paste the following command to execute:
irm https://raw.githubusercontent.com/limitcool/chrome-gemini-sidebar-fixer/main/fix_chrome.ps1 | iexIf Python is installed on your system:
python fix_chrome.pyRight-click fix_chrome.ps1 and choose "Run with PowerShell", or execute the following in PowerShell:
Set-ExecutionPolicy Bypass -Scope Process -Force
.\fix_chrome.ps1fix_chrome.py: Python version of the fix logic.fix_chrome.ps1: PowerShell version of the fix logic (fallback).LICENSE: MIT License.
用于一键修复 Google Chrome 浏览器右上角 “问问 Gemini” (或 Glic/Gemini 侧边栏) 图标丢失问题的脚本工具。
由于 Chrome 浏览器更新了侧边栏管理逻辑,或者在某些网络环境/地理位置限制下,Gemini 图标可能会被自动隐藏或取消固定。
本工具通过以下两种方式修复该问题:
- 将 Chrome 配置文件中的
variations_permanent_consistency_country从cn修改为us,绕过区域策略限制。 - 将所有 Chrome 用户配置文件(Profiles)中的
is_glic_eligible设置为true,以强制启用 Gemini 侧边栏功能。
在运行脚本前,请务必完全关闭 Google Chrome 浏览器(检查系统托盘或后台进程,以防修改被覆盖)。
打开 PowerShell 窗口,复制并运行以下命令:
irm https://raw.githubusercontent.com/limitcool/chrome-gemini-sidebar-fixer/main/fix_chrome.ps1 | iex如果您的系统上安装了 Python,可以直接运行:
python fix_chrome.py右键点击 fix_chrome.ps1 并选择 “使用 PowerShell 运行”,或者在 PowerShell 窗口中运行:
Set-ExecutionPolicy Bypass -Scope Process -Force
.\fix_chrome.ps1fix_chrome.py:Python 版本的修复核心逻辑。fix_chrome.ps1:PowerShell 版本的修复核心逻辑(备用)。LICENSE:MIT 开源许可证。
This project is licensed under the MIT License - see the LICENSE file for details.
本项目使用 MIT 许可证进行开源 - 详情请参阅 LICENSE 文件。