🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

ChatGPT Remove UTM Source from links (clean URLs)

Removes ?utm_source=chatgpt.com from URLs on OpenAI and ChatGPT domains

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

You will need to install an extension such as Tampermonkey to install this script.

Necesitarás instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Necesitará instalar una extensión como Tampermonkey para instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Autor
ezzdev
Instalaciones diarias
1
Instalaciones totales
22
Calificaciones
0 0 0
Versión
1.0
Creado
23/10/2025
Actualizado
23/10/2025
Tamaño
2,13 KB
Licencia
MIT
Funciona en

ChatGPT Remove UTM Source from links (clean URLs)

Description

This script automatically removes the ?utm_source=chatgpt.com tracking parameter from links on ChatGPT and OpenAI domains. This ensures that any external link you click, copy, or share is clean and free of this specific UTM tracker, giving you shorter and cleaner URLs.


Features

  • Address Bar Cleaning: Instantly removes the utm_source parameter from the current page's URL in your address bar (using history.replaceState to avoid a page reload).
  • Click Interception: Cleans links right as you click them, so you are always taken to the clean URL.
  • Dynamic Content Support: Uses a MutationObserver to automatically find and clean new links that are added to the page dynamically (e.g., inside new chat responses).
  • Lightweight & Fast: Runs at document-start and has no external dependencies, ensuring minimal performance impact.

How to Use

  1. Install the script using a userscript manager (see below).
  2. Browse chatgpt.com or openai.com as you normally would.
  3. The script works automatically in the background. There is no configuration needed. Any link you click or copy will be clean.

Compatibility

This script is designed to work on all pages within the following domains:

It is compatible with any modern browser that supports a userscript manager, such as:


Installation

  1. Make sure you have a userscript manager (like Tampermonkey or Violentmonkey) installed in your browser.
  2. Click the "Install this script" button on this Greasy Fork page.
  3. Your userscript manager will show a confirmation screen. Click "Install" to add the script.

Changelog

  • v1.0
    • Initial release.
    • Cleans utm_source from links on click, on page load, and in dynamic content.
    • Cleans the browser's address bar URL on load.