AdenFlorian / Better Hacker News

// ==UserScript==
// @name        Better Hacker News
// @namespace   http://AdenFlorian.com/
// @include     https://news.ycombinator.com/
// @version     0.0.1
// @author     David "AdenFlorian" Valachovic <AdenFlorian@gmail.com>
// @description Changes a tragets to _blank so they open in new tab. Will add more features over time.
// @match      https://news.ycombinator.com
// @match      https://news.ycombinator.com/news*
// @copyright  2014+, You
// @require    https://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==

$('tr>td.title>a').each(function() {
    $(this).attr("target", "_blank");
});

$('tr>td.subtext>a').each(function() {
    $(this).attr("target", "_blank");
});