Created
February 3, 2021 01:19
-
-
Save hyrious/db268969628794d04bb4e78d178f5cdb to your computer and use it in GitHub Desktop.
fix svg in github dark theme by give them white background
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name SVG Background White - github.com | |
// @namespace github-svg-background-color.hyrious.me | |
// @match https://github.com/* | |
// @grant none | |
// @version 1.0 | |
// @author hyrious | |
// @description add img[src^="/"][src$=".svg"]{ background-color: white } to the page | |
// ==/UserScript== | |
(() => { | |
const style = document.createElement('style') | |
style.append('img[src^="/"][src$=".svg"]{ background-color: white }') | |
document.head.append(style) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment