Google Gemini - Direct Links

Removes the google.com/search?q= redirection wrapper from links generated by Google Gemini, allowing you to open external websites directly.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Milor123
日安装量
0
总安装量
4
评分
0 0 0
版本
1.0
创建于
2025-11-23
更新于
2025-11-23
大小
2.3 KB
许可证
MIT
适用于

Google Gemini - Direct Links

Description

This script automatically removes the intermediate Google Search redirection (https://www.google.com/search?q=...) from links generated by Google Gemini AI.

By default, when Gemini provides a link to a website (like Amazon, YouTube, or a blog), it often wraps it in a Google Search URL. This script extracts the real URL and makes the link point directly to the destination.

Features

  • Privacy & Speed: Skips the Google tracking redirect.
  • Direct Access: Links look and behave like normal web links.
  • New Tab: Automatically sets links to open in a new tab (target="_blank") so you don't lose your conversation with the AI.
  • Smart Detection: Only affects links that look like external URLs, preserving legitimate "Search for X" links.

Example

Before (Default behavior): Gemini gives you a link to a product. When you hover over it, the URL looks like: https://www.google.com/search?q=https://www.amazon.com/s?k=example

After (With this script): The link becomes a direct link to the site: https://www.amazon.com/s?k=example

Installation

  1. Install a userscript manager like Violentmonkey or Tampermonkey.
  2. Install this script.
  3. Refresh your Gemini tab.