Last active
November 16, 2017 23:01
-
-
Save butchhoward/0904de116249d3ac33a33b687ca28d4f to your computer and use it in GitHub Desktop.
github pull request list - make links open in a new tab
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
function MakeLinksOpenInNewWindow() { | |
if (window.location.href.includes('/pulls')) { | |
var links = document.querySelectorAll('li div div a'); | |
for (var i = 0; i < links.length; i++) { | |
links[i].target = "_blank"; | |
} | |
} | |
} | |
MakeLinksOpenInNewWindow(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment