Open link in new tab in GitHub

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

作者
wxupjack
今日安裝
0
安裝總數
5
評價
0 0 0
版本
0.1
建立日期
2025-07-11
更新日期
2025-07-11
尺寸
1.5 KB
授權條款
MIT
腳本執行於

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.