aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/style/style.c2
-rw-r--r--plugins/style/style.h2
-rw-r--r--plugins/style/style.js18
3 files changed, 20 insertions, 2 deletions
diff --git a/plugins/style/style.c b/plugins/style/style.c
index 7e8ddf0..1605e56 100644
--- a/plugins/style/style.c
+++ b/plugins/style/style.c
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#define STYLE_N 794 + 1
+#define STYLE_N 1358 + 1
void read_style_js(char* string){
FILE *fp=fopen("/home/loki/Documents/core/software/fresh/C/rose-browser/rose-browser/plugins/style/style.js", "r");
diff --git a/plugins/style/style.h b/plugins/style/style.h
index 20a684b..73adfdb 100644
--- a/plugins/style/style.h
+++ b/plugins/style/style.h
@@ -1,7 +1,7 @@
#ifndef STYLE
#define STYLE
-#define STYLE_N 794 + 1
+#define STYLE_N 1358 + 1
void read_style_js(char* string);
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"