您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This Script makes all EH Galleries mangas open in a new tab
// ==UserScript== // @name open in new tab // @namespace Violentmonkey Scripts // @match https://e-hentai.org/* // @match https://exhentai.org/* // @grant none // @version 1.2 // @author UglyOldLazyBastard // @license WTFPL http://www.wtfpl.net/faq/ // @description This Script makes all EH Galleries mangas open in a new tab // @require https://cdn.jsdelivr.net/npm/@violentmonkey/dom@2 // ==/UserScript== const elementList1 = document.querySelectorAll('.gl3t a'); const elementList2 = document.querySelectorAll('.gl1t > a'); // Function to add target="_blank" attribute function addTargetBlank(node) { node.setAttribute('target', '_blank'); } // Apply the function to elements in the first NodeList elementList1.forEach(addTargetBlank); // Apply the function to elements in the second NodeList elementList2.forEach(addTargetBlank);