Sleazy Fork is available in English.

E-Hentai Menu On Top

Copy gallery menu on the bottom to top

  1. // ==UserScript==
  2. // @name E-Hentai Menu On Top
  3. // @namespace https://greasyfork.org/en/users/37676
  4. // @description Copy gallery menu on the bottom to top
  5. // @match *://*.e-hentai.org/s/*
  6. // @match *://exhentai.org/s/*
  7. // @run-at document-end
  8. // @version 1.0.0
  9. // @grant none
  10. // @license Creative Commons Attribution 4.0 International Public License; http://creativecommons.org/licenses/by/4.0/
  11. // ==/UserScript==
  12.  
  13. var menuTopDiv = document.getElementById('i2');
  14.  
  15. if (menuTopDiv)
  16. {
  17. var menuHomeDiv = document.getElementById('i5');
  18. var menu1Div = document.getElementById('i6');
  19. var menu2Div = document.getElementById('i7');
  20. var htmlAdd = '';
  21. if (menuHomeDiv)
  22. htmlAdd += '<div>'+menuHomeDiv.innerHTML+'</div>';
  23. if (menu1Div)
  24. htmlAdd += '<div>'+menu1Div.innerHTML+'</div>';
  25. if (menu2Div)
  26. htmlAdd += '<div>'+menu2Div.innerHTML+'</div>';
  27. menuTopDiv.innerHTML += '<div style="margin: 10px auto">'+htmlAdd+'</div>';
  28. }