GitHub Link Cleaner

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Spinfal
今日安裝
0
安裝總數
2
評價
0 0 0
版本
1.1
建立日期
2026-01-17
更新日期
2026-01-17
尺寸
4.7 KB
授權條款
GPL-3.0-only
腳本執行於

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