Created
September 11, 2014 10:15
-
-
Save szxw/8fa91cbfa94091c56718 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// ==UserScript== | |
// @include http*://*/* | |
// ==/UserScript== | |
var as = document.getElementsByTagName("a"); | |
for (var aa in as) { | |
if (as[aa].getAttribute("href") && as[aa].getAttribute("href") != "#") { | |
as[aa].target = "_blank"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment