StyleFixes

Miscellaneous fixes for various pages.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ==UserStyle==
@name               StyleFixes
@namespace          sun/userstyles
@version            1.6.4
@description        Miscellaneous fixes for various 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/StyleFixes.png
@copyright          2022-present, Sunny (https://sny.sh/)
@license            Hippocratic License; https://forgejo.sny.sh/sun/userstyles/src/branch/main/LICENSE.md
@preprocessor       stylus
@var                checkbox fandom    "Fandom: Fix page offset"             1
@var                checkbox figma     "Figma: Resizable plugin windows"     1
@var                checkbox filecrypt "Filecrypt: Fix captcha size"         1
@var                checkbox imdb      "IMDb: Merge IMDb Scout lines"        1
@var                checkbox invidious "Invidious: Fix audio mode alignment" 1
@var                checkbox itch      "itch.io: Fix header width"           1
@var                checkbox mschf     "MSCHF: Bypass password prompts"      1
@var                checkbox sankaku   "Sankaku: Hide blacklisted posts"     1
@var                checkbox vrchat    "VRChat: Fix page height"             1
==/UserStyle== */

@-moz-document domain("fandom.com") {
  if fandom {
    .page-side-tools__wrapper {
      display: none;
    }
  }
}

@-moz-document domain("figma.com") {
  if figma {
    .jsvm_ui--pluginUI--HIW9L .draggable_modal--positionedContainer--1aHEn {
      width: auto !important;
      height: auto !important;
    }
    .plugin-iframe-in-modal {
      resize: both;
    }
  }
}

@-moz-document domain("filecrypt.cc") {
  if filecrypt {
    #nc {
      width: initial;
      height: initial;
    }
  }
}

@-moz-document domain("imdb.com") {
  if imdb {
    .Hero__MediaContentContainer__Video-sc-kvkd64-2,
    #imdbscout_header {
      float: left;
    }
    #imdbscoutsecondbar_header {
      float: right;
    }
    #scout_rating_table {
      position: absolute;
      right: 0;
    }
  }
}

@-moz-document regexp(".*:\\/\\/.*\\/watch\\?v=.*") {
  if invidious {
    [title="Audio mode"],
    [title="Video mode"] {
      margin-left: auto;
    }
  }
}

@-moz-document domain("itch.io") {
  if itch {
    .header_widget {
      width: 100%;
    }
  }
}

@-moz-document domain("screamclub.club"), domain("spottingplutes.com"), domain("whitewhale.is"), domain("bread.mschfmag.com"), domain("cred.mschfmag.com"), domain("versus.mschfmag.com"), domain("people.mschfmag.com") {
  if mschf {
    body {
      overflow: unset !important;
    }

    #MSCHFPreloader.has-password {
      display: none;
    }
  }
}

@-moz-document domain("chan.sankakucomplex.com") {
  if sankaku {
    .blacklisted {
      display: none !important;
    }
  }
}

@-moz-document url-prefix("https://vrchat.com/home")
{
  if vrchat {
    .content-scroll {
      height: auto !important;
    }
  }
}