open in new tab

This Script makes all EH Galleries mangas open in a new tab

21.10.2024 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name        open in new tab
// @namespace   Violentmonkey Scripts
// @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);