From 806b80bff3ddf08ba1b75505e4f8d371ecbc87bd Mon Sep 17 00:00:00 2001 From: overdodactyl Date: Sun, 15 Apr 2018 14:39:38 -0600 Subject: [PATCH] add theme for greasemonkey #105 --- .../webextension-tweaks/generic_style.css | 8 ++++-- .../webextension-tweaks/greasemonkey.css | 28 +++++++++++++++++++ scripts/webextension_mappings.txt | 1 + userContent_imports.css | 1 + 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 css/userContent-files/webextension-tweaks/greasemonkey.css diff --git a/css/userContent-files/webextension-tweaks/generic_style.css b/css/userContent-files/webextension-tweaks/generic_style.css index 49f5f53..b1b7e19 100644 --- a/css/userContent-files/webextension-tweaks/generic_style.css +++ b/css/userContent-files/webextension-tweaks/generic_style.css @@ -4,7 +4,8 @@ url-prefix("moz-extension://decentraleyes_UUID/pages/popup"), url-prefix("moz-extension://smart_https_UUID/data/data/popup.html"), url-prefix("moz-extension://rename_tab_title_UUID/popup/popup.html"), - url-prefix("moz-extension://open_in_new_tab_UUID/popup") { + url-prefix("moz-extension://open_in_new_tab_UUID/popup"), + url-prefix("moz-extension://greasemonkey_UUID/src/browser/monkey-menu") { :root { --in-content-page-background: var(--tone-6)!important; --in-content-box-background: rgba(11,11,12,0.2)!important; @@ -51,6 +52,8 @@ url-prefix("moz-extension://open_in_new_tab_UUID/"), url-prefix("moz-extension://display_anchors_UUID/"), url-prefix("moz-extension://rename_tab_title_UUID/"), + url-prefix("moz-extension://greasemonkey_UUID/src/browser/monkey-menu"), + url-prefix("moz-extension://generic_styling_1_UUID"), url-prefix("moz-extension://generic_styling_2_UUID"), url-prefix("moz-extension://generic_styling_3_UUID"), @@ -134,7 +137,8 @@ /*! Code Mirror */ @-moz-document url-prefix("moz-extension://violentmonkey_UUID/"), url-prefix("moz-extension://ublock_origin_UUID/"), - url-prefix("moz-extension://umatrix_UUID/") { + url-prefix("moz-extension://umatrix_UUID/"), + url-prefix("moz-extension://greasemonkey_UUID/src/content/edit-user-script") { .CodeMirror { border: 1px solid !important; border-color: var(--cm-background)!important; diff --git a/css/userContent-files/webextension-tweaks/greasemonkey.css b/css/userContent-files/webextension-tweaks/greasemonkey.css new file mode 100644 index 0000000..1ab828c --- /dev/null +++ b/css/userContent-files/webextension-tweaks/greasemonkey.css @@ -0,0 +1,28 @@ +@-moz-document url-prefix("moz-extension://greasemonkey_UUID/") { + html, + body { + background: var(--in-content-page-background) !important; + } + #tabs .tab.active, + .command-item { + background: var(--tone-8) !important; + color: var(--in-content-page-color) !important; + } + .subview-back::before { + content: url(/skin/back.svg); + filter: invert(65%); + } + .subview-back:hover, + .subview-back:focus, + .subview-item:hover, + .subview-item:focus { + background-color: var(--in-content-category-background-hover) !important; + cursor: default; + color: inherit; + text-decoration: none; + } + .subview-item .text, + .subview-item .icon { + background: transparent !important; + } +} diff --git a/scripts/webextension_mappings.txt b/scripts/webextension_mappings.txt index c2cc661..b345f32 100644 --- a/scripts/webextension_mappings.txt +++ b/scripts/webextension_mappings.txt @@ -12,6 +12,7 @@ display_anchors|display-anchors@robwu.nl enhancer_for_youtube_UUID|enhancerforyoutube@maximerf.addons.mozilla.org flash_and_video_download_UUID|{bee6eb20-01e0-ebd1-da83-080329fb9a3a} google_translator_for_firefox|translator@zoli.bod +greasemonkey|{e4a8a97b-f2ed-450b-b12d-ee082ba24781} https_everywhere|https-everywhere@eff.org mind_the_time|jid0-HYNmqxA9zQGfJADREri4n2AHKSI@jetpack multi_account_containers|@testpilot-containers diff --git a/userContent_imports.css b/userContent_imports.css index 3f09dc5..9192fd8 100644 --- a/userContent_imports.css +++ b/userContent_imports.css @@ -18,6 +18,7 @@ @import "css/userContent-files/webextension-tweaks/brief.css"; @import "css/userContent-files/webextension-tweaks/cookie_autodelete.css"; @import "css/userContent-files/webextension-tweaks/dark_mode.css"; +@import "css/userContent-files/webextension-tweaks/greasemonkey.css"; @import "css/userContent-files/webextension-tweaks/multi_account_containers.css"; @import "css/userContent-files/webextension-tweaks/noscript.css"; @import "css/userContent-files/webextension-tweaks/pocket.css";