Created
November 8, 2016 01:24
-
-
Save mabe-at/9a0cc35973a37dba0e644778f4b2c7bb to your computer and use it in GitHub Desktop.
external links js
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() { | |
$(document.links).filter(function() { | |
return this.hostname != window.location.hostname; | |
}).attr('target', '_blank'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment