diff options
Diffstat (limited to 'plugins/style')
-rw-r--r-- | plugins/style/style.c | 2 | ||||
-rw-r--r-- | plugins/style/style.h | 2 | ||||
-rw-r--r-- | plugins/style/style.js | 9 |
3 files changed, 9 insertions, 4 deletions
diff --git a/plugins/style/style.c b/plugins/style/style.c index 1605e56..03222fe 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 1358 + 1 +#define STYLE_N 1393 + 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 73adfdb..5e5d76b 100644 --- a/plugins/style/style.h +++ b/plugins/style/style.h @@ -1,7 +1,7 @@ #ifndef STYLE #define STYLE -#define STYLE_N 1358 + 1 +#define STYLE_N 1393 + 1 void read_style_js(char* string); diff --git a/plugins/style/style.js b/plugins/style/style.js index 600506f..bc0540e 100644 --- a/plugins/style/style.js +++ b/plugins/style/style.js @@ -1,7 +1,9 @@ // Replicates the Stylus app: <https://addons.mozilla.org/en-GB/firefox/addon/styl-us/> +var styles = null; + if (document.domain == "forum.effectivealtruism.org"){ - var styles = ` + styles = ` .Layout-main { margin-left: 100px; } @@ -24,7 +26,7 @@ if (document.domain == "forum.effectivealtruism.org"){ } if (document.domain == "mail.proton.me" ){ - var styles = ` + styles = ` .item-container-row.read, .item-container.read { background-color: white; } @@ -35,6 +37,9 @@ if (document.domain == "mail.proton.me" ){ background-color: var(--selection-background-color) !important; } ` +} + +if(styles != null){ var styleSheet = document.createElement('style') styleSheet.innerText = styles document.head.appendChild(styleSheet) |