Created
May 20, 2010 12:44
-
-
Save umitanuki/407520 to your computer and use it in GitHub Desktop.
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
// ==UserScript== | |
// @name Hacker News => target="_blank" | |
// @namespace umitanuki | |
// @include http://news.ycombinator.com/ | |
// ==/UserScript== | |
(function(){ | |
var ary = document.getElementsByClassName("title"); | |
for(var i=0, l=ary.length; i<l; i++){ | |
var as = ary[i].getElementsByTagName("a"); | |
for(var j=0, m=as.length; j<m; j++){ | |
as[j].target = "_blank"; | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment