TorrentGalaxy Makeover

Collection of optional changes to how TorrentGalaxy is viewed.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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%;
        }
    }
}