Skip to content

Instantly share code, notes, and snippets.

@butchhoward
Last active November 16, 2017 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save butchhoward/0904de116249d3ac33a33b687ca28d4f to your computer and use it in GitHub Desktop.
Save butchhoward/0904de116249d3ac33a33b687ca28d4f to your computer and use it in GitHub Desktop.
github pull request list - make links open in a new tab
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