E-Hentai Menu On Top

Copy gallery menu on the bottom to top

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name        E-Hentai Menu On Top
// @namespace   https://greasyfork.org/en/users/37676
// @description Copy gallery menu on the bottom to top
// @match       *://*.e-hentai.org/s/*
// @match       *://exhentai.org/s/*
// @run-at      document-end
// @version     1.0.0
// @grant       none
// @license     Creative Commons Attribution 4.0 International Public License; http://creativecommons.org/licenses/by/4.0/
// ==/UserScript==

var menuTopDiv = document.getElementById('i2');

if (menuTopDiv)
{
  var menuHomeDiv = document.getElementById('i5');
  var menu1Div = document.getElementById('i6');
  var menu2Div = document.getElementById('i7');
  
  var htmlAdd = '';
  
  if (menuHomeDiv)
  htmlAdd += '<div>'+menuHomeDiv.innerHTML+'</div>';
  
  if (menu1Div)
  htmlAdd += '<div>'+menu1Div.innerHTML+'</div>';
  
  if (menu2Div)
  htmlAdd += '<div>'+menu2Div.innerHTML+'</div>';
  
  menuTopDiv.innerHTML += '<div style="margin: 10px auto">'+htmlAdd+'</div>';
}