Greasy Fork is available in English.

当前页面打开链接

通用

// ==UserScript==
// @name     当前页面打开链接
// @description  通用
// @version    1
// @match     *
// @require    https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js
// @namespace https://greasyfork.org/users/12375
// ==/UserScript==

(function() {  

$('form').attr('target','_self');

$('a').click(e=>e.currentTarget.target='_self');

setInterval(()=>$('a').attr('target','_self'));

unsafeWindow.open=url=>location.replace(url);

})();