你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/420947-transparent-standalone-images/discussions/303381,源站連結 點此以跳轉。
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 的反馈
v3.0.1 affects the background of the first image found
Seems like the checkerboard render might remain distorted despite the render type selected. In that case need to tweak checkerboard size instead (or additionally)
v4 todo
v4 description
*images examples here*
If the checkerboard looks blurry or distorted, you can tweak its appearance through the script manager dropdown menu
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:
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