E-Hentai Menu On Top

Copy gallery menu on the bottom to top

Stan na 11-04-2016. Zobacz najnowsza wersja.

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

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

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        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>';
}