2 ms·
A user script using Greasemonkey for Firefox or TamperMonkey for Chrome/Chromium can change the behavior. For example: // ==UserScript== // @name ad
by brudgers 10y ago
A user script using Greasemonkey for Firefox or TamperMonkey for Chrome/Chromium can change the behavior. For example:
// ==UserScript==
// @name add_target_blank
// @namespace com.kludgecode.demonstration
// @include https://news.ycombinator.com/news
// @version 1
// @grant none
// ==/UserScript==
var stories=document.getElementsByClassName("storylink");
for (story of stories) {
story.target = "blank";
};
Will add the behavior for the Hacker News front page. I tested with Greasemonkey and I'd expect it to work for Tampermonkey.
Greasemonkey: https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/ https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
Tampermonkey: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en https://chrome.google.com/webstore/detail/tampermonkey/dhdgf...