Greasy Fork 支持简体中文。

Open Links in New Tab

Open all links in a new tab

// ==UserScript==
// @name         Open Links in New Tab
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Open all links in a new tab
// @author       AydenGen
// @match        *://*/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    var links = document.getElementsByTagName("a");
    for (var i = 0; i < links.length; i++) {
        links[i].target = "_blank";
    }

})();