Advertisement
Guest User

Untitled

a guest
Aug 27th, 2022
999
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. // ==UserScript==
  2. // @name 5 To 6 Column
  3. // @match *://e-hentai.org/*
  4. // @match *://exhentai.org/*
  5. // @icon https://www.google.com/s2/favicons?domain=e-hentai.org
  6. // ==/UserScript==
  7.  
  8. // https://www.codegrepper.com/code-examples/css/tampermonkey+custom+css
  9. function addGlobalStyle(css) {
  10. var head, style;
  11. head = document.getElementsByTagName('head')[0];
  12. if (!head) { return; }
  13. style = document.createElement('style');
  14. style.type = 'text/css';
  15. style.innerHTML = css.replace(/;/g, ' !important;');
  16. head.appendChild(style);
  17. }
  18.  
  19. (function() {
  20. let gdo4 = document.getElementById("gdo4");
  21. if (gdo4)
  22. if (gdo4.childNodes[0].onclick) {
  23. let gdtls = document.getElementsByClassName("gdtl");
  24. for (let gdtl of gdtls)
  25. gdtl.style.width = "238px";//>202
  26. let gdt = document.getElementById("gdt");
  27. gdt.style.padding = "0px";
  28. gdt.style.maxWidth = "1920px";//gdtl.style.width * 6
  29. }
  30.  
  31. let ido = document.getElementsByClassName("ido")[0];
  32. if (ido)
  33. ido.style.maxWidth = "1920px";//fullscreen
  34. let itg_gld = document.getElementsByClassName("itg gld")[0];
  35. if (itg_gld)
  36. itg_gld.style.gridTemplateColumns = "repeat(6,1fr)";
  37.  
  38. // modify min-width of gl1t
  39. addGlobalStyle(".gl1t {min-width: 0px}");
  40. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement