Created
September 19, 2024 08:48
-
-
Save yyogo/6aff3636fe64327692f66b7afa96e3f8 to your computer and use it in GitHub Desktop.
Fix t.co links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Replace annoying tracking `http://t.co/...` links on Twitter ("X") with the actual target. | |
// Install as userscript or JSlet (prefix with `javascript:` and save as bookmark) or just run in console | |
document.querySelectorAll('a[href*="https://t.co"]').forEach(a => a.setAttribute('href', a.innerText.replace('…',''))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment