E-Hentai Menu On Top

Copy gallery menu on the bottom to top

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

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