您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
新标签页打开搜索结果
// ==UserScript== // @name Open in new Tab 新标签页打开搜索结果 // @namespace Gallen // @version 0.0.1 // @include *://*.google.com/s* // @include *://*.baidu.com/s* // @description 新标签页打开搜索结果 // @author Gallen // @grant none // ==/UserScript== (function() { 'use strict'; function makeNewTab(node) { node.setAttribute('target', '_blank'); } Array.from(document.querySelectorAll('#search a')).forEach(node => { makeNewTab(node); }); Array.from(document.querySelectorAll('#content_left a')).forEach(node => { makeNewTab(node); }); })();