GitHub Link Cleaner

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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