tweak: proton stylesheet

This commit is contained in:
NunoSempere 2023-02-11 14:40:15 +01:00
parent 95829b06a2
commit 86fef30c22
3 changed files with 20 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#define STYLE_N 794 + 1 #define STYLE_N 1358 + 1
void read_style_js(char* string){ 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"); FILE *fp=fopen("/home/loki/Documents/core/software/fresh/C/rose-browser/rose-browser/plugins/style/style.js", "r");

View File

@ -1,7 +1,7 @@
#ifndef STYLE #ifndef STYLE
#define STYLE #define STYLE
#define STYLE_N 794 + 1 #define STYLE_N 1358 + 1
void read_style_js(char* string); void read_style_js(char* string);

View File

@ -23,4 +23,22 @@ if (document.domain == "forum.effectivealtruism.org"){
console.log('Style changed') 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" document.body.style.visibility = "visible"