您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
使页面上所有链接在新标签页中打开
当前为
// ==UserScript== // @name 新标签页中打开链接 // @namespace Violentmonkey Scripts // @match *://*/* // @grant none // @version 1.0 // @author glman // @license GPL-3.0 License // @run-at document-en // @description 使页面上所有链接在新标签页中打开 // ==/UserScript== (function(){ // 创建一个新的<base>标签 var baseTag = document.createElement('base'); // 设置target属性为"_blank" baseTag.target = '_blank'; // 找到页面的<head>部分 var head = document.head || document.getElementsByTagName('head')[0]; // 将<base>标签插入到<head>中 head.appendChild(baseTag); })()