nhentai-helper

helper for nhentai

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         nhentai-helper
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  helper for nhentai
// @author       miles
// @match        https://nhentai.net/*
// @license      MIT
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAJFBMVEVHcEwTFRZw4ABozwJfugRp0QIcKBRdtgVeugQeLBRozgJs2AEfML4gAAAAAXRSTlMAQObYZgAAAL9JREFUWMPtl9sOhDAIRDvUvf///24WuhQvXa3ErA/MgxlLOQFiTEhJhG4lK+ySM70iACfBCwCcBC8ATgUgAAEIwEEAop5cvt0FmITdgP4WWgASsXsUV07ZsL3IiV63LdRXE9j6SFqZAD7uqQ5Uw5omgeEHAMaRZoxmQJRXATqZWS2svK0CYAYot/PeFr6B1wrADnsBQGqbgCt3ep8AzHQWP+Wxhsb5Lf5IAQhAAE4K+P/OdIK90b/6+pdv1/r/Bme/ENKeu7LSAAAAAElFTkSuQmCC
// @grant        none
// ==/UserScript==
;(function () {
  'use strict'
  const items = document.querySelectorAll('.gallery')
  items.forEach((item) => {
    const a = item?.children?.[0]
    if(a?.tagName === 'A') {
      a.target = '_blank'
    }
  })
})()