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

< Feedback on Transparent standalone images

Question/comment

KonfPembuat
§
Posted: 07 Juli 2025

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

KonfPembuat
§
Posted: 07 Juli 2025

v3.0.1 affects the background of the first image found

KonfPembuat
§
Posted: 07 Juli 2025
Edited: 07 Juli 2025

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

KonfPembuat
§
Posted: 07 Juli 2025

v4 todo

  • Apply changes without reloading the page;
  • Settings pane: render type, sizes and colors;
KonfPembuat
§
Posted: 07 Juli 2025
Edited: 07 Juli 2025

v4 description

*images examples here*

If the checkerboard looks blurry or distorted, you can tweak its appearance through the script manager dropdown menu
KonfPembuat
§
Posted: 16 Juli 2025

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

Post reply

Sign in to post a reply.

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