ImageHider

Hides any images in various ways.

目前为 2022-02-11 提交的版本。查看 最新版本

/* ==UserStyle==
@name            ImageHider
@namespace       https://github.com/TheLastZombie/
@version         1.1.2
@description     Hides any images in various ways.
@homepageURL     https://thelastzombie.github.io/userstyles/
@supportURL      https://github.com/TheLastZombie/userstyles/issues/new?labels=ImageHider
@contributionURL https://ko-fi.com/rcrsch
@author          TheLastZombie <[email protected]>
@icon            https://raw.githubusercontent.com/TheLastZombie/userstyles/main/icons/ImageHider.png
@copyright       2020-2022, TheLastZombie (https://github.com/TheLastZombie/)
@license         MIT; https://github.com/TheLastZombie/userstyles/blob/main/LICENSE
@preprocessor    stylus
@var select      mode    "Mode"    ["d:Display", "v:Visibility*", "o:Opacity", "f:Opacity (filter)"]
@var range       opacity "Opacity" [0.25, 0, 1, 0.01]
@var checkbox    force   "Force"   1
==/UserStyle== */

if force {
  img,
  canvas,
  picture,
  svg {
    if mode == d {
      display: none !important;
    }
    if mode == v {
      visibility: hidden !important;
    }
    if mode == o {
      opacity: opacity !important;
    }
    if mode == f {
      filter: opacity(opacity) !important;
    }
  }
  *,
  *:before,
  *:after {
    background-image: none !important;
  }
}
else {
  img,
  canvas,
  picture,
  svg {
    if mode == d {
      display: none;
    }
    if mode == v {
      visibility: hidden;
    }
    if mode == o {
      opacity: opacity;
    }
    if mode == f {
      filter: opacity(opacity);
    }
  }
  *,
  *:before,
  *:after {
    background-image: none;
  }
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址