ChatGPT Remove UTM Source from links (clean URLs)

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

Από την 23/10/2025. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

Δημιουργός
ezzdev
Βαθμολογίες
0 0 0
Έκδοση
1.0
Δημιουργήθηκε την
23/10/2025
Ενημερώθηκε την
23/10/2025
Μέγεθος
2 KB
Άδεια
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.