GitHub Link Cleaner

remove github hydro tracking attrs from all links + force noreferrer/noopener

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

Upphovsman
Spinfal
Dagliga installationer
0
Totala installationer
2
Betyg
0 0 0
Version
1.1
Skapad
2026-01-17
Uppdaterad
2026-01-17
Size
4,75 KB
Licens
GPL-3.0-only
Gäller för

github link cleaner

this userscript strips github’s internal tracking attributes from all links and hardens link behavior for better privacy and security.

what it does

  • removes github hydro tracking attributes from every link
  • strips hovercard-related tracking metadata
  • forces rel="noopener noreferrer" on all anchors
  • watches the dom and cleans links added dynamically
  • keeps counters for how many links were cleaned
    • since page load
    • since script installation
  • prints clean, styled status logs to the dev console

why you might want it

github injects a lot of tracking metadata into links for analytics and ui behavior. this script removes that noise while preserving normal navigation, making links simpler, cleaner, and harder to abuse via referrer leaks or tab-nabbing.

notes

  • runs only on github.com
  • does not block network requests or break site functionality
  • uses localStorage only to persist a total cleaned-links counter
  • no external dependencies, no remote code