TorrentGalaxy Makeover

Collection of optional changes to how TorrentGalaxy is viewed.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

/* ==UserStyle==
@name           TorrentGalaxy Makeover
@namespace      NotNeo
@version        2.1.0
@description    Collection of optional changes to how TorrentGalaxy is viewed.
@author         NotNeo
@license        unlicense
@preprocessor   stylus

@var          checkbox     HideHotTwitter "Hide Hot Picks & Twitter Feed" 0
@var          checkbox     HideNews "Hide News Items" 0
@var          checkbox     HideRadio "Hide Radio" 0
@var          checkbox     HideStaffPick "Hide Staff Picks" 0
@var          text         shoutHeight "Shoutbox height" 600px
@var          checkbox     shoutAlwaysImg "Always show images in shoutbox" 0
==/UserStyle== */
@-moz-document url-prefix("https://torrentgalaxy.to/lobby.php"),
url-prefix("https://torrentgalaxy.mx/lobby.php"),
url-prefix("https://tgx.rs/lobby.php"),
url-prefix("https://tgx.sb/lobby.php") {
    /*
    nth-last-of-type(x) is used because there are no proper identifiers.
    This relies on the order of the elements remaining the same.
    It counts from last to first, because the news section may or may not exist at any time at the top
    */
    
    /*Hide "News Items"*/
    if HideNews {
        #moann > div > div > .col-lg-2 ~ div > .panel-primary:nth-last-of-type(4) {
            display: none;
        }
    }

    /*Hide Radio*/
    if HideRadio {
        #moann > div > div > .col-lg-2 ~ div > .panel-primary:nth-last-of-type(3) {
            display: none;
        }
    }

    /*Hide "Staff Picks"*/
    if HideStaffPick {
        #moann > div > div > .col-lg-2 ~ div > .panel-primary:nth-last-of-type(1){
            display: none;
        }
    }

    /*Shoutbox height*/
    .shoutbox {
        max-height: shoutHeight;
    }

    /*Shoutbox always show images*/
    if shoutAlwaysImg {
        .shoutbox .chatcellmsg > span.label.label-default {
            display: none;
        }
        .shoutbox .chatcellmsg > span.label.label-default + div {
            display: block !important;
        }
    }
}
@-moz-document domain("torrentgalaxy.to"),
domain("torrentgalaxy.mx"),
domain("tgx.rs"), domain("tgx.sb") {
    /*Hide "Hot Picks" & "Twitter feed" */
    if HideHotTwitter {
        #moann > div > div > .col-lg-2 {
            display: none;
        }
        #moann > div > div > .col-lg-2 ~ div {
            width: 100%;
        }
    }
}