fuck 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         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";
    }
})();