您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
阻止所有链接在新窗口打开.
// ==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"; } })();