i do GoogL Le

This commit is contained in:
Alex Janka 2021-06-07 16:24:33 +10:00
parent d0ea56f58b
commit ac885cda7e
3 changed files with 65 additions and 8 deletions

View file

@ -1,20 +1,29 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "injections", "name": "injections",
"version": "0.2", "version": "0.3",
"description": "misc CSS injections.", "description": "misc CSS injections.",
"icons": { "icons": {
"48": "icons/icon48.png", "48": "icons/icon48.png",
"96": "icons/icon96.png" "96": "icons/icon96.png"
}, },
"content_scripts": [{ "content_scripts": [{
"matches": ["*://news.ycombinator.com/*"], "matches": [
"css": ["styles/news.ycombinator.com.css"] "*://news.ycombinator.com/*"
}], ],
"css": [
"styles/news.ycombinator.com.css"
]
},
{
"matches": [
"*://*.google.com/search?*"
],
"css": [
"styles/google.com.css"
]
}
],
"browser_specific_settings": { "browser_specific_settings": {
"gecko": { "gecko": {
"update_url": "https://raw.githubusercontent.com/italicsjenga/injections/master/updates.json" "update_url": "https://raw.githubusercontent.com/italicsjenga/injections/master/updates.json"

44
styles/google.com.css Normal file
View file

@ -0,0 +1,44 @@
@media (prefers-color-scheme: dark) {
body,
.minidiv .sfbg,
.aCOpRe em,
.jZWadf,
.ndYZfc,
.s8GCU,
.Lj9fsd,
.O3JH7,
.MGqjK,
.JolIg,
.GmE3X,
.IsZvec,
.appbar,
.sfbg,
.yg51vc,
.F9PbJd,
.kp-blk {
background: #37393f;
color: #eaeaea;
}
cite {
color: #c9c9c9;
}
.k8XOCe,
.s75CSd {
background: #5e6168;
color: #eaeaea;
}
.MXl0lf {
background: #eaeaea;
}
a,
.WpKAof,
.WGvvNb {
color: #7982fd;
}
.KFFQ0c .YfftMc,
.KFFQ0c .YfftMc span,
.KFFQ0c .YfftMc div,
.KFFQ0c .YfftMc a {
color: #a7a7a7;
}
}

View file

@ -8,6 +8,10 @@
{ {
"version": "0.2", "version": "0.2",
"update_link": "https://github.com/italicsjenga/injections/releases/download/0.2/injections-0.2.xpi" "update_link": "https://github.com/italicsjenga/injections/releases/download/0.2/injections-0.2.xpi"
},
{
"version": "0.3",
"update_link": "https://github.com/italicsjenga/injections/releases/download/0.3/injections-0.3.xpi"
} }
] ]
} }