3 ms·
If you use Greasemonkey, you can use the following user script (only adds the target attribute to article links): // ==UserScript== // @grant none
by RiderSargent 13y ago
If you use Greasemonkey, you can use the following user script (only adds the target attribute to article links):
// ==UserScript==
// @grant none
// @match https://news.ycombinator.com/*
// @name Hacker News Tweeks
// @namespace https://github.com/ridersargent
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
$(document).ready(function() {
// set article-related links to open in new window/tab
$('.subtext a, .title:not(:last) a').attr('target', '_blank');
});