/* ==UserStyle== @name GitHub Dark IMG Background Color @namespace StylishThemes @version 2.0.12 @description A GitHub Dark image background color user customizable style. @author StylishThemes and contributors @homepageURL https://github.com/StylishThemes/Feature-Override-Styles/ @supportURL https://github.com/StylishThemes/Feature-Override-Styles/issues @updateURL https://raw.githubusercontent.com/StylishThemes/Feature-Override-Styles/master/github-dark-img-bg-clr.user.css @license MIT @var color backgroundclr "Background color" rgba(255, 255, 255, .9) @var checkbox bgclrhack "Background color hover hack" 0 @preprocessor stylus ==/UserStyle== */ @-moz-document regexp("^https?://((education|gist|guides|help|lab|launch-editor|raw|resources|status|developer|support)\\.)?github\\.com/((?!generated_pages/preview).)*$"), domain("githubusercontent.com"), domain("graphql-explorer.githubapp.com"), domain("www.githubstatus.com") { /* stylelint-disable */ i = !important /* stylelint-enable */ if not bgclrhack { .comment-body.markdown-body img[data-canonical-src*="svg"], .comment-body.markdown-body img.emoji, .comment-body.markdown-body img[src*="raw.githubusercontent"], .comment-body.markdown-body img[src*="png"] { background-color: inherit i; } .comment-body.markdown-body img:not([src*="raw.githubusercontent"]):not(.emoji):not([data-canonical-src*="dependabot"]):not([data-canonical-src*="githubapp.com"]):not([data-canonical-src*="cla-assistant.io"]):not([data-canonical-src*="cla.dotnetfoundation.org"]):not([data-canonical-src*="cla.opensource.microsoft.com"]) { background: backgroundclr i; } } else { .comment-body.markdown-body img[data-canonical-src*="svg"], .comment-body.markdown-body img.emoji, .comment-body.markdown-body img[src*="raw.githubusercontent"], .comment-body.markdown-body img[src*="png"] { background-color: inherit i; } .comment-body.markdown-body img:not([src*="raw.githubusercontent"]):not(.emoji):not([data-canonical-src*="dependabot"]):not([data-canonical-src*="githubapp.com"]):not([data-canonical-src*="cla-assistant.io"]):not([data-canonical-src*="cla.dotnetfoundation.org"]):not([data-canonical-src*="cla.opensource.microsoft.com"]):hover { background: backgroundclr i; } } }