Wide Hentai 2019

Wide E-Hentai and Exhentai - support for wide 1920px monitors

  1. // ==UserScript==
  2. // @name Wide Hentai 2019
  3. // @namespace widee-hentai
  4. // @version 2019.07.27
  5. // @description Wide E-Hentai and Exhentai - support for wide 1920px monitors
  6. // @match http://e-hentai.org/*
  7. // @match http://exhentai.org/*
  8. // @exclude http://e-hentai.org/s/*
  9. // @exclude http://exhentai.org/s/*
  10. // @match https://e-hentai.org/*
  11. // @match https://exhentai.org/*
  12. // @exclude https://e-hentai.org/s/*
  13. // @exclude https://exhentai.org/s/*
  14. // @run-at document-end
  15. // @grant none
  16. // @noframes
  17. // ==/UserScript==
  18.  
  19. function $(id) {return document.getElementById(id);}
  20. function c(id) {return document.getElementsByClassName(id);}
  21. if(window.location.pathname.indexOf("/g/") != 0)
  22. {
  23. c("ido")[0].style.maxWidth = "1895px";
  24. c("itg gld")[0].style = "grid-template-columns: repeat(7,1fr)";
  25. }
  26. else // /g/
  27. {
  28. c("ptt")[0].style.margin = "45px auto 2px";
  29. if(c("gdtl").length != 0) // large thumbs hathperk
  30. {
  31. $("gdt").style.maxWidth = "1890px";
  32. var im = c("gdtl");
  33. for(var i=0; i< im.length; i++)
  34. {
  35. im[i].style.width = "234px";
  36. }
  37. }
  38. else
  39. {
  40. $("gdt").style.maxWidth = "1681px";
  41. }
  42. }