ChatGPT Remove UTM Source from links (clean URLs)

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

Автор
ezzdev
Установок в день
0
Всего установок
2
Оценки
0 0 0
Версия
1.0
Создано
23.10.2025
Обновлено
23.10.2025
Размер
2,1 КБ
Лицензия
MIT
Работает на

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.