/* ==UserStyle== @name nyaa.si - Customization @description Provides some extra customization options. @version 2025.12.29.18.46 @author MetalTxus @namespace https://github.com/jesuscc1993/ @license CC BY-SA 4.0 @preprocessor stylus @var text table-font-size "Table font size" 1em @var text icons-font-size "Icons size" 1em @var text cell-padding "Cell padding" 4px @var text avatar-size "Avatar size" unset @var checkbox wide-search "Wide searchbar" 0 @var checkbox custom-style "Alternative style" 0 @var checkbox custom-categories "Custom category icons (live action excluded)" 0 @var checkbox text-categories "Display categories as text" 0 @var checkbox hide-categories "Hide categories" 0 ==/UserStyle== */ @-moz-document regexp("https?:\\/\\/\\S*nyaa.(si|at)\\S*") { if (custom-style) { /* main */ .container { min-width: 75%; border-color: transparent; background: none; } /* round table */ .table-bordered, .table-bordered * { border-color: transparent !important; } .table-bordered { border-collapse: separate; border-spacing: 0 3px; } .table-bordered td:first-child { border-radius: 6px 0 0 6px; border-left: 1px solid transparent; } .table-bordered td:last-child { border-radius: 0 6px 6px 0; border-right: 1px solid transparent; } .tlisticon, .tlistsn, .tlistsize, .tlistdownload, .tlistmn { border-width: 1px !important; } /* theme colors */ .table .danger td { background-color: #d03e001f !important; } .table .success td { background-color: #00a0501f !important; } body.dark { a:focus, a:hover { color: #63aae3; text-decoration: underline; } .table { background-color: transparent; } .table-striped > tbody > tr:nth-of-type(odd) { background-color: #ffffff04; } .table-hover > tbody > tr:hover { background-color: #ffffff12; } } } /* cell-padding */ .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td, table.torrent-list td:first-child { padding: cell-padding; } table.torrent-list thead { th.sorting:after, th.sorting_asc:after, th.sorting_desc:after { top: 4px; right: 4px; padding: (cell-padding / 2) 0; } } /* */ /* table-font-size */ if (table-font-size) { table { font-size: table-font-size; } } /* icons-font-size */ if (icons-font-size) { table.torrent-list .fa.fa-download, table.torrent-list .fa.fa-magnet { font-size: icons-font-size; position: relative; top: 2px; } } if (avatar-size != unset) { #comments { .col-md-2 { width: auto; .avatar { max-width: avatar-size; } } } } /* custom-categories */ if (custom-categories) { img[src^="/static/img/icons/nyaa/1_"], img[src^="/static/img/icons/nyaa/2_"], img[src^="/static/img/icons/nyaa/3_"], img[src^="/static/img/icons/nyaa/5_"], img[src^="/static/img/icons/nyaa/6_"] { height: 0; width: 80px; padding-top: 28px; background-size: cover; } img[src="/static/img/icons/nyaa/1_1.png"] { background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/1_1.png"); } img[src="/static/img/icons/nyaa/1_2.png"] { background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/1_2.png"); } img[src="/static/img/icons/nyaa/1_3.png"] { background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/1_3.png"); } img[src="/static/img/icons/nyaa/1_4.png"] { background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/1_4.png"); } img[src="/static/img/icons/nyaa/2_1.png"] { background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/2_1.png"); } img[src="/static/img/icons/nyaa/2_2.png"] { background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/2_2.png"); } img[src="/static/img/icons/nyaa/3_1.png"] { background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/3_1.png"); } img[src="/static/img/icons/nyaa/3_2.png"] { background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/3_2.png"); } img[src="/static/img/icons/nyaa/3_3.png"] { background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/3_3.png"); } img[src="/static/img/icons/nyaa/5_1.png"] { background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/5_1.png"); } img[src="/static/img/icons/nyaa/5_2.png"] { background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/5_2.png"); } img[src="/static/img/icons/nyaa/6_1.png"] { background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/6_1.png"); } img[src="/static/img/icons/nyaa/6_2.png"] { background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/6_2.png"); } } /* text-categories */ if (text-categories) { .torrent-list td:first-child a img { display: none; } .torrent-list td:first-child a:after { content: attr(title); display: inline-block; font-size: 10px; line-height: 18px; } } /* hide-categories */ if (hide-categories) { .torrent-list th:first-child, .torrent-list td:first-child:not([colspan]) { display: none; } if (custom-style) { /* round table */ .table-bordered td:nth-child(2) { border-radius: 6px 0 0 6px; border-left: 1px solid transparent; } } } /* wide-search */ if (wide-search) { @media (min-width: 992px) { .navbar-right:first-of-type { margin-top: 0; padding: 0; width: 100%; } .navbar-right:first-of-type .btn-group { width: 144px !important; } .navbar-form .input-group { display: inline-flex; flex-direction: row; vertical-align: middle; width: 100%; } .navbar-form .input-group .search-btn { height: auto; } } } }