您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Open links on Hacker News in a new tab
当前为
// ==UserScript== // @name Hacker News Open Links in New Tab // @namespace http://tampermonkey.net/ // @version 1.1 // @description Open links on Hacker News in a new tab // @license GPL v3.0 // @author xdpirate // @match https://news.ycombinator.com/ // @match https://news.ycombinator.com/?p* // @match https://news.ycombinator.com/news* // @match https://news.ycombinator.com/best* // @match https://news.ycombinator.com/newest* // @match https://news.ycombinator.com/front* // @match https://news.ycombinator.com/ask* // @match https://news.ycombinator.com/show* // @icon https://www.google.com/s2/favicons?domain=ycombinator.com // @grant none // ==/UserScript== let links = document.querySelectorAll("td.title > span.titleline > a"); for(let i = 0; i < links.length; i++) { links[i].target = "_blank"; }