Skip to content

Gelbooru Tweaks by ninjaraya

Details

Authorninjaraya

LicenseNo License

Categorygelbooru

Created

Updated

Size7.7 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

personal use

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name			Gelbooru Tweaks
@namespace		github.com/openstyles/stylus
@version		1.0.0
@description	A new userstyle
@author			Me
@license		unlicense
@preprocessor	stylus
@var select iSize "IMaGe size" {
 "Original": "orig",
 "Smaller": "less",
 "Fit both": "fitb",
 "Fit width": "more",
 "Fit height": "fith",
}
==/UserStyle== */
@-moz-document regexp("http.*gelbooru.com/(/|)images/.*") {
    body {
        background: url('data:image/gif;base64,R0lGODlhEAAQAIAAAMDAwP///yH5BAAAAAAALAAAAAAQABAAAAIfhG+hq4jM3IFLJhoswNly/XkcBpIiVaInlLJr9FZWAQA7') fixed!important;
    }
    img {
        background: none!important;
    }
}
@-moz-document url-prefix("https://gelbooru.com/index.php?page=post&s=view&id=") {
    img:not(.homeIcon > img):not(.invert):not(#myTopnav > a > img[src="layout/lightbulb-fill.svg"]) {
        background-image: url('data:image/gif;base64,R0lGODlhEAAQAIAAAMDAwP///yH5BAAAAAAALAAAAAAQABAAAAIfhG+hq4jM3IFLJhoswNly/XkcBpIiVaInlLJr9FZWAQA7');
        background-size: auto!important;
    }
}
@-moz-document url-prefix("https://gelbooru.com/index.php?page=tags&s=list&tags=") {
    #tags-search.ui-autocomplete-input {
        width: calc(100% - 410px)!important;
    }
    input.tag-list-search {
        width: 98.3%!important;
    }
    .aside {
        display: none;
    }
    main {
        position: relative;
        left: -230px;
        width: 1330px;
    }
}
@-moz-document url-prefix("https://gelbooru.com/index.php?page=post&s=list&tags=") {
    .thumbnail-container {
    width: calc(100vw - 252px);
    }
    /*img.preview {
        margin: -5px!important;
    }*/
/*    img[title~="rating:Explicit"],
    img[title~="rating:explicit"] {
        background: red!important;
        background-size: 100%;
        border: 5px solid transparent!important;
    }
    img[title~="rating:Questionable"],
    img[title~="rating:questionable"] {
        background: yellow!important;
        border: 5px solid transparent!important;
    }
    img[title~="rating:Safe"],
    img[title~="rating:safe"] {
        background: green!important;
        border: 5px solid transparent!important;
    }
    img[title~="animated"] {
        border: 5px solid!important;
        border-color: transparent transparent transparent magenta!important;
    }
    img[title~="animated_png"] {
        border: 5px solid!important;
        border-color: transparent transparent transparent cyan!important;
    }
    img.webm,
    img[title~="webm"] {
        border: 5px solid!important;
        border-color: transparent transparent transparent blue!important;
    }*/
    img.poopC.thumbnail-preview {
        width: auto!important;
        height: auto!important;
        max-width: 195px!important;
        max-height: 185px!important;
        display: block!important;
        margin: auto!important;
    }
    .thumbnail-preview {
        width: 100%!important;
        height: auto!important;
        max-width: 260px!important;
        max-height: 260px!important;
        /*min-height: 260px!important;*/
        border: none!important;
        margin: 5px auto!important;
    }
    article.thumbnail-preview img/*.webm*/ {
        object-fit: contain!important;
        min-width: 250px!important;
        min-height: 250px!important;
    }
    article.thumbnail-preview img {
        max-width: 250px!important;
        max-height: 250px!important;
    }
    /*.contain-push {
        width: calc(100% - 220px)!important;
        position: absolute!important;
        margin: auto!important;
        left: 220px!important;
    }*/
    ul#tag-list {
        width: 215px!important;
        left: 0px!important;
        margin-top: 0px!important;
        padding-top: 0px !important;
        border-top: 1px solid #f0f0f0!important;
    }
    img[src^="https://thumbs.gelbooru.com/ad/"] {
        display:block!important;
    }
    .ui-widget-content a {
    color: inherit!important;
    }
}
@-moz-document url-prefix("https://gelbooru.com/index.php?page=post&s=view&id="), url-prefix("https://gelbooru.com/index.php?page=post&s=view&tags="), url-prefix("https://gelbooru.com/index.php?page=post&s=list&tags=") {
    /*@var checkbox Enable "Image Resize" 1*/
    /*if Enable {#image {width: auto!important;max-width: 850px !important;height: auto!important;max-height: 100% !important;}}*/
    ::-webkit-scrollbar {
        background: transparent;
        width: 12px;
        height: 12px;
    }
    ::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
        background: transparent;
        border-radius: 50px;
    }
    ::-webkit-scrollbar-thumb {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
        background: transparent;
        border-radius: 50px;
    }
    ::-webkit-scrollbar-thumb:hover {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8);
        background: transparent;
        border-radius: 10px;
    }
    ::-webkit-scrollbar-corner {
        background: transparent;
    }
    a[target="_blank"]:not([rel="noopener"]) {
        display: none!important;
    }
/*
    div div[style][id] {
        position: absolute;
        top: 100px;
        display: inline-block;
        border: none;
    }
*/
    .mainBodyPadding {
        padding: 0px!important;
    }
    /*body > div.padding15 > div.contain-push > br:nth-of-type(1),*/
    .mainBodyPadding div[style="max-width: 1000px; height: 100px;"],
    .mainBodyPadding a[href^="https://buymyshit"]
    .mainBodyPadding > br:nth-of-type(1),
    .mainBodyPadding > br:nth-of-type(2),
    .mainBodyPadding > iframe,
    .mainBodyPadding > a:nth-of-type(1),
    .mainBodyPadding > div[style="width: 728px; height: 90px;"],
    .mainBodyPadding > div[style="max-width: 1000px; height: 120px;"],
    .mainBodyPadding > div[style="width: 100%;"],
    #container > main > div.mainBodyPadding > center > iframe {
        display: none!important;
    }
    .mainBodyPadding h4 {
        margin: 5px 0 0!important;
    }
    .alert {
        /*position: relative!important;*/
        /*top: -12px!important;*/
        padding:0px!important;
        margin-bottom:0px!important;
        /*width:100%;*/
        /*display:none;*/
    }
    .alert.alert-info {
        position: absolute;
        top: 100px;
        display: none;
    }
   .searchArea {
        height: 32px!important;
    }
    textarea {
        background: inherit!important;
    }
    if iSize=="orig" {
        .padding15 {
            position: absolute!important;
            top: 80px!important;
            padding:0px!important;
        }
    }
    if iSize=="less" {
        #image,
        .gelcomVPlayer {
            width: auto !important;
            max-width: 850px !important;
            height: auto!important;
            /*max-height: 850px !important;*/
            margin: 0px!important;
        }
    }
    if iSize=="fitb" {
        #image,
        .gelcomVPlayer {
            width: auto !important;
            max-width: 100% !important;
            height: auto!important;
            max-height: calc(100vh - 167px) !important;
            margin: 0px!important;
        }
    }
    if iSize=="fith" {
        #image,
        .gelcomVPlayer {
            width: auto !important;
            /*max-width: 100% !important;*/
            height: auto!important;
            max-height: calc(100vh - 167px) !important;
            margin: 0px!important;
        }
    }
    if iSize=="more" {
        #image,
        .gelcomVPlayer {
            width: auto !important;
            max-width: 100% !important;
            height: auto!important;
            max-height: 100% !important;
            margin: 0px!important;
        }
    }
}

Reviews

No reviews yet.