aboutsummaryrefslogtreecommitdiff
path: root/plugins/style/style.js
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-02-15 03:24:47 +0100
committerNunoSempere <nuno.sempere@protonmail.com>2023-02-15 03:24:47 +0100
commit25dedb09e1321ae70fe0598d98a3a6e4d15d1215 (patch)
tree8894952d15feb6133bdd4c3828de2d817eb33c2e /plugins/style/style.js
parenta27b4357af07c0eef7a28afe6dc8e9274e9d7e17 (diff)
tweaks: around bloomberg webpage
Diffstat (limited to 'plugins/style/style.js')
-rw-r--r--plugins/style/style.js9
1 files changed, 7 insertions, 2 deletions
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)