Skip to content

全局-图片背景色 by mscststs

Details

Authormscststs

LicenseNo License

Category*.png/jpg/gif/webp/avif

Created

Updated

Size1.1 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

为图片设置透明背景

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         全局-图片背景色
@version      20230703.07.52
@namespace    ?
==/UserStyle== */

@-moz-document regexp(".*\\.(jpg|png|ico|gif|webp|avif)(\\?.*)?") {
body[style='margin: 0px; background: #0e0e0e; height: 100%']{
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAGUExUReXl5f///+LF7EkAAAAJcEhZcwAADsIAAA7CARUoSoAAAAFXSURBVGhD7dChAQAgAMOw8f/TmB5APPE1nTusUFSCQlEJCkUlKBSVoFBUgkJRCQpFJSgUlaBQVIJCUQkKRSUoFJWgUFSCQlEJCkUlKBSVoFBUgkJRCQpFJSgUlaBQVIJCUQkKRSUoFJWgUFSCQlEJCkUlKBSVoFBUgkJRCQpFJSgUlaBQVIJCUQkKRSUoFJWgUFSCQlEJCkUlKBSVoFBUgkJRCQpFJSgUlaBQVIJCUQkKRSUoFJWgUFSCf9hUgkJRCQpFJSgUlaBQVIJCUQkKRSUoFJWgUFSCQlEJCkUlKBSVoFBUgkJRCQpFJSgUlaBQVIJCUQkKRSUoFJWgUFSCQlEJCkUlKBSVoFBUgkJRCQpFJSgUlaBQVIJCUQkKRSUoFJWgUFSCQlEJCkUlKBSVoFBUgkJRCQpFJSgUlaBQVIJCUQkKRSUoFJWgUFSCQlEJCkUlKHy2XYbTE4kys0vbAAAAAElFTkSuQmCC") !important;
    background-size:5vh !important;
}

body[style='margin: 0px; background: #0e0e0e; height: 100%'] > img{
    background:transparent !important;
}
}

Reviews

No reviews yet.