tweak: proton stylesheet
This commit is contained in:
parent
95829b06a2
commit
86fef30c22
|
@ -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");
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef STYLE
|
||||
#define STYLE
|
||||
|
||||
#define STYLE_N 794 + 1
|
||||
#define STYLE_N 1358 + 1
|
||||
|
||||
void read_style_js(char* string);
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user