Open link in new tab in GitHub

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

نووسەر
wxupjack
Daily installs
0
Total installs
1
Ratings
0 0 0
وەشان
0.1
Created
2025-07-11
Updated
2025-07-11
Size
1.49 KB
مۆڵەت
MIT
Applies to

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.