aboutsummaryrefslogtreecommitdiff
path: root/plugins/style/style.js
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-02-11 14:40:15 +0100
committerNunoSempere <nuno.sempere@protonmail.com>2023-02-11 14:40:42 +0100
commit86fef30c22582896f468b9cb1b1c8dbd3043e1f5 (patch)
treecad5446c3a03d0e3e237f7a74e71f308679d1ff4 /plugins/style/style.js
parent95829b06a27c27106b94660fe1cc5d48c5887f9e (diff)
tweak: proton stylesheet
Diffstat (limited to 'plugins/style/style.js')
-rw-r--r--plugins/style/style.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/style/style.js b/plugins/style/style.js
index 01524d0..600506f 100644
--- a/plugins/style/style.js
+++ b/plugins/style/style.js
@@ -23,4 +23,22 @@ if (document.domain == "forum.effectivealtruism.org"){
console.log('Style changed')
}
+if (document.domain == "mail.proton.me" ){
+ var styles = `
+ .item-container-row.read, .item-container.read {
+ background-color: white;
+ }
+ .item-container-row.unread, .item-container.unread {
+ background-color: #E8E8E8;
+ }
+ .selection .item-container-row.item-is-selected, .item-container.item-is-selected {
+ background-color: var(--selection-background-color) !important;
+ }
+ `
+ var styleSheet = document.createElement('style')
+ styleSheet.innerText = styles
+ document.head.appendChild(styleSheet)
+ console.log('Style changed')
+}
+
document.body.style.visibility = "visible"