ChatGPT Remove UTM Source from links (clean URLs)

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

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

Autore
ezzdev
Installazioni giornaliere
1
Installazioni totali
26
Valutazione
0 0 0
Versione
1.0
Creato il
23/10/2025
Aggiornato il
23/10/2025
Dimensione
2,13 KB
Licenza
MIT
Applica a

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.