Open link in new tab in GitHub

Ensures all <a> tags on GitHub Pages open in a new tab

Skapare
wxupjack
Dagliga installationer
0
Totala installationer
3
Betyg
0 0 0
Version
0.1
Skapad
2025-07-11
Uppdaterad
2025-07-11
Size
1,49 KB
Licens
MIT
Gäller för

Open link in new tab in GitHub

GitHub defaults to opening new pages in the current tab. By modifying the target attribute of the <a> tag, this script can force new pages to open in a new tab. However, for some special links, such as issue redirects, they will still open in the current tab.

长期地址
遇到问题?请前往 GitHub 提 Issues。