Transparent standalone images

By default, the transparency of an image opened in a separate tab is indicated by a gray color. This script replaces it with a checkerboard pattern

< Transparent standalone images 피드백으로 돌아가기

질문/댓글

Konf작성자
§
게시: 2025-07-07

v2.0.0 had false positives on pages where the image appears first. See https://dictionary.cambridge.org/

v3.0.0 would not work if there is an extension that inserts content, causing the image to no longer be the first element

Konf작성자
§
게시: 2025-07-07

v3.0.1 affects the background of the first image found

Konf작성자
§
게시: 2025-07-07
수정: 2025-07-07

Seems like the checkerboard render might remain distorted despite the render type selected. In that case need to tweak checkerboard size instead (or additionally)

Konf작성자
§
게시: 2025-07-07

v4 todo

  • Apply changes without reloading the page;
  • Settings pane: render type, sizes and colors;
Konf작성자
§
게시: 2025-07-07
수정: 2025-07-07

v4 description

*images examples here*

If the checkerboard looks blurry or distorted, you can tweak its appearance through the script manager dropdown menu
Konf작성자
§
게시: 2025-07-16

On Tampermonkey the script doesn't work if there is Content‑Security‑Policy: sandbox on the page. However, Violentmonkey automatically makes a bypass for this and works, but then the default base64 checkerboard doesn't work with a Refused to load the image error in console, which seems to be another CSP restriction. Gradient checkerboard works alright. Page example:

https://static.wikia.nocookie.net/villains/images/8/84/The_Hillbilly.png/revision/latest?cb=20200519210028

답글 게시

답글을 게시하려면 로그인하세요.

长期地址
遇到问题?请前往 GitHub 提 Issues。