Remove e-hentai image title

Remove e-hentai all image titles. They will not show on mouse hover anymore.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Remove e-hentai image title
// @namespace    Remove e-hentai image title
// @version      2.1
// @description  Remove e-hentai all image titles. They will not show on mouse hover anymore.
// @author       fmnijk
// @match        https://e-hentai.org/*
// @match        https://exhentai.org/*
// @icon         https://www.google.com/s2/favicons?domain=e-hentai.org
// @grant        none
// @run-at       document-end
// @license      MIT
// ==/UserScript==

document.body.onmouseover = function() {
    document.querySelectorAll('img').forEach(function(img) {
        if (img.hasAttribute('title')) {
            img.setAttribute('title', '');
        }
    });
    document.querySelectorAll('div').forEach(function(img) {
        if (img.hasAttribute('title')) {
            img.setAttribute('title', '');
        }
    });
};