fuck blank

阻止所有链接在新窗口打开.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         fuck blank
// @namespace    http://www.fangzengye.com/
// @version      V1.2.0
// @description  阻止所有链接在新窗口打开.
// @description  我苦点击链接新窗口打开久已,遂自己开发一个所有链接当前窗口打开的脚本,这大大减少垃圾窗口的出现.
// @description  Block all links from opening in new windows.
// @description  I hate clicking all links and they all open in new windows, 
// @description  so I developed a script to open all links in the current window, 
// @description  which greatly reduces the appearance of junk windows.

// @author       Leolucky
// @match        *://*.com/*
// @match        *://*.gov/*
// @match        *://*.org/*
// @match        *://*.cn/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    var _self = document.querySelectorAll("a");
    var i;
    for (i = 0; i < _self.length; i++) {
        _self[i].target = "_self";
    }
})();