Sleazy Fork is available in English.

ExExtended

CSS fixes to make extended view less stupid.

  1. // ==UserScript==
  2. // @name ExExtended
  3. // @author Hauffen
  4. // @description CSS fixes to make extended view less stupid.
  5. // @version 2.2
  6. // @include /https?:\/\/(e-|ex)hentai\.org\/.*/
  7. // @require https://code.jquery.com/jquery-3.3.1.min.js
  8. // @namespace https://greasyfork.org/users/285675
  9. // ==/UserScript==
  10.  
  11. $(function() {
  12. var hUrl = "https://" + window.location.hostname;
  13. var url = document.URL;
  14. var index = document.getElementsByTagName("select").length > 1 ? 1 : 0;
  15.  
  16. var d1 = url.split('/')[3];
  17. if(d1 === "s") {
  18. var $nb = $('<div>');
  19. $nb.load(`${hUrl} #nb`, function() {
  20. $('body').prepend(this.children[0]);
  21. });
  22. }
  23.  
  24. if(document.getElementsByTagName("select").length === 0) {
  25. return;
  26. }
  27.  
  28. if(document.getElementsByTagName("select")[index].selectedIndex === 3) {
  29. $("<style data-jqstyle='exextended'>.glte > tbody > tr {height: 348px;}.glte > tbody > tr > td {border-right: 1px solid #6f6f6f;}" +
  30. ".gl1e,.gl2e,.glfe {border: 1px solid #6f6f6f;}.gl1e > div {border-radius: 0px;}.gl4e {min-height: 348px;border-left: 1px solid transparent;}" +
  31. ".gl4e > div:nth-child(1) {font-weight: bold;}.gl3e {max-width: none;position: absolute;bottom: 10px;width: 100%;}" +
  32. ".gl3e > div:nth-child(1) {left: 6px;top: 118px;}.gl3e > div:nth-child(2) {top: 154px;}.gl3e > div:nth-child(3) {right: 35px;top: 153px;left: auto;}" +
  33. ".gl3e > div:nth-child(4) {right: 10px;top: 110px;left: auto;text-align: right;}.gl3e > div:nth-child(5) {right: 10px;top: 130px;left: auto;text-align: right;}" +
  34. ".gl3e > div:nth-child(6) {text-align: right !important;right: 12px;top: 154px;left: unset;};</style>").appendTo("head");
  35. } else if (document.getElementsByTagName("select")[index].selectedIndex === 4) {
  36. $("<style data-jqstyle='exextended'>.gld{grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)) !important;}" +
  37. "div.ido{padding-left:0px;max-width:100% !important;}.glnew:after{right: -116px;top: -50px;}</style>").appendTo("head");
  38. }
  39.  
  40. //Changing up the New icon, comment this out for it to not be there
  41. switch(document.getElementsByTagName("select")[index].selectedIndex) {
  42. default:
  43. $("<style>.glnew:after {content: url('https://i.imgur.com/p0yiKb7.gif');margin-left: 5px;position:absolute;right:-733px;top:7px;z-index:2;</style>").appendTo("head");
  44. break;
  45. case 1:
  46. $("<style>.glnew:after {content: url('https://i.imgur.com/p0yiKb7.gif');margin-left: 5px;position:absolute;right:-733px;top:7px;z-index:2;</style>").appendTo("head");
  47. break;
  48. case 2:
  49. $("<style>.glnew:after {content: url('https://i.imgur.com/p0yiKb7.gif');margin-left: 5px;position:absolute;right:-805px;top:3px;z-index:2;</style>").appendTo("head");
  50. break;
  51. case 3:
  52. $("<style>.glnew:after {content: url('https://i.imgur.com/p0yiKb7.gif');margin-left: 5px;position:absolute;right:-790px;top:-315px;z-index:2;</style>").appendTo("head");
  53. break;
  54. case 4:
  55. $("<style>.glnew:after {content: url('https://i.imgur.com/p0yiKb7.gif');margin-left: 5px;position:absolute;z-index:2;</style>").appendTo("head");
  56. break;
  57. }
  58. })