From ac885cda7e793a7ee641b81feccdfd683da8686d Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Mon, 7 Jun 2021 16:24:33 +1000 Subject: [PATCH] i do GoogL Le --- manifest.json | 25 ++++++++++++++++-------- styles/google.com.css | 44 +++++++++++++++++++++++++++++++++++++++++++ updates.json | 4 ++++ 3 files changed, 65 insertions(+), 8 deletions(-) create mode 100644 styles/google.com.css diff --git a/manifest.json b/manifest.json index 202138e..f2bebbb 100644 --- a/manifest.json +++ b/manifest.json @@ -1,20 +1,29 @@ { "manifest_version": 2, "name": "injections", - "version": "0.2", - + "version": "0.3", "description": "misc CSS injections.", - "icons": { "48": "icons/icon48.png", "96": "icons/icon96.png" }, - "content_scripts": [{ - "matches": ["*://news.ycombinator.com/*"], - "css": ["styles/news.ycombinator.com.css"] - }], - + "matches": [ + "*://news.ycombinator.com/*" + ], + "css": [ + "styles/news.ycombinator.com.css" + ] + }, + { + "matches": [ + "*://*.google.com/search?*" + ], + "css": [ + "styles/google.com.css" + ] + } + ], "browser_specific_settings": { "gecko": { "update_url": "https://raw.githubusercontent.com/italicsjenga/injections/master/updates.json" diff --git a/styles/google.com.css b/styles/google.com.css new file mode 100644 index 0000000..ee091ec --- /dev/null +++ b/styles/google.com.css @@ -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; + } +} \ No newline at end of file diff --git a/updates.json b/updates.json index cf826ce..b074e7e 100644 --- a/updates.json +++ b/updates.json @@ -8,6 +8,10 @@ { "version": "0.2", "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" } ] }