ExExtended

CSS fixes to make extended view less stupid.

As of 2019-03-23. See the latest version.

// ==UserScript==
// @name         ExExtended
// @author       Hauffen
// @description  CSS fixes to make extended view less stupid.
// @version      1.2
// @include      /https?:\/\/(e-|ex)hentai\.org\/.*/
// @require      https://code.jquery.com/jquery-3.3.1.min.js
// @namespace https://greasyfork.org/users/285675
// ==/UserScript==

$(function() {
    if(document.getElementsByTagName("select").length === 0) {
        return;
    }

    if(document.getElementsByTagName("select")[0].selectedIndex === 2) {
        $("<style>.glt > tbody > tr {height: 348px;}.glt > tbody > tr > td {border-right: 1px solid #6f6f6f;}.gl1e,.gl2e,.glfe {border: 1px solid #6f6f6f;}.gl1e > div {border-radius: 0px;}.gl4e {min-height: 348px;border-left: 1px solid transparent;}.gl4e > div:nth-child(1) {font-weight: bold;}.gl3e {max-width: none;position: absolute;bottom: 10px;width: 100%;}.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;}.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;}.gl3e > div:nth-child(6) {text-align: right;right: 10px;}</style>").appendTo("head");
    } else if (document.getElementsByTagName("select")[0].selectedIndex === 3) { //Edit out this else block to remove UI changes.
        $("<style>.gld{grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)) !important;}div.ido{padding-left:0px;max-width:100% !important;}</style>").appendTo("head");
    }
})