Greasy Fork is available in English.

Untarget _blank

Murderise target="_blank"

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Untarget _blank
// @namespace   https://git.sr.ht/~remph
// @include     *
// @grant       none
// @version     0.2
// @author      Remph
// @description Murderise target="_blank"
// @license     GPL-3.0-or-later
// ==/UserScript==

function unblank(root) {
	root.querySelectorAll(
		'a[target="_blank"], base[target="_blank"]' // form[target="_blank"]
	).forEach((a) => a.setAttribute('target', '_self')); // could also removeAttribute
}

(function() {
	unblank(document.body); // run straight away to unblank static content
	// hang around in the background to keep interfering
	new MutationObserver(
		(muts) => muts.forEach((mut) => unblank(mut.target))
	).observe(document.body, {
		subtree: true, childList: true, attributes: true
	});
})();