ImageHider

Hides any images in various ways.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

/* ==UserStyle==
@name               ImageHider
@namespace          sun/userstyles
@version            1.2.9
@description        Hides any images in various ways.
@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/ImageHider.png
@copyright          2020-present, Sunny (https://sny.sh/)
@license            Hippocratic License; https://forgejo.sny.sh/sun/userstyles/src/branch/main/LICENSE.md
@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,
  video {
    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,
  video {
    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;
  }
}