RYMNotificationHider

Hides various notifications displayed on Rate Your Music pages.

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

/* ==UserStyle==
@name               RYMNotificationHider
@namespace          sun/userstyles
@version            1.1.2
@description        Hides various notifications displayed on Rate Your Music pages.
@compatible         chrome
@compatible         edge
@compatible         firefox
@compatible         opera
@compatible         safari
@homepageURL        https://forgejo.sny.sh/sun/userstyles
@supportURL         https://forgejo.sny.sh/sun/userstyles/issues
@contributionURL    https://liberapay.com/sun
@contributionAmount €1.00
@author             Sunny <[email protected]>
@icon               https://forgejo.sny.sh/sun/userstyles/raw/branch/main/icons/RYMNotificationHider.png
@copyright          2023-present, Sunny (https://sny.sh/)
@license            Hippocratic License; https://forgejo.sny.sh/sun/userstyles/src/branch/main/LICENSE.md
@preprocessor       stylus
@var                checkbox fc-consent-root            "Hide cookie consent pop-up"                            1
@var                checkbox frame-div-gpt-ad           "Hide Google Publisher Tags advertisements"             1
@var                checkbox connatix_video             "Hide Connatix video advertisements"                    1
@var                checkbox subscription_update_banner "Hide subscription advertisement after site update"     1
@var                checkbox end_of_year_banner         "Hide giveaway and sale banners"                        1
@var                checkbox glitchwave_invite          "Hide Glitchwave public beta invitation (profile only)" 1
@var                checkbox release_ac                 "Hide release submission/editing notes"                 1
@var                checkbox genre_vote_abuse_banner    "Hide genre/descriptor voting abuse warning"            1
@var                checkbox forum_move_banner          "Hide forum relocation notification"                    1
@var                checkbox list_note                  "Hide list content note"                                1
==/UserStyle== */

@-moz-document domain("rateyourmusic.com"), domain("rym.fm") {
  if fc-consent-root {
    #page_body {
      overflow: auto !important;
    }
    div.fc-consent-root {
      display: none !important;
    }
  }

  if frame-div-gpt-ad {
    [id*="frame-div-gpt-ad"] {
      display: none !important;
    }
  }

  if connatix_video {
    [style="vertical-align:middle;width:415px;min-height:280px;"] {
      display: none;
    }
  }

  if subscription_update_banner {
    #subscription_update_banner {
      display: none;
    }
  }

  if end_of_year_banner {
    div[style="padding:1em;padding-bottom:2em;"] {
      display: none;
    }
  }

  if glitchwave_invite {
    #glitchwave_invite {
      display: none;
    }
  }

  if release_ac {
    #release_ac .warning {
      display: none;
    }
  }

  if genre_vote_abuse_banner {
    #genre_vote_abuse_banner {
      display: none;
    }
  }

  if forum_move_banner {
    #forum_move_banner {
      display: none;
    }
  }

  if list_note {
    #list_comment + .note {
      display: none;
    }
  }
}