aboutsummaryrefslogtreecommitdiff
path: root/plugins/style/style.js
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-03-28 11:18:54 -0600
committerNunoSempere <nuno.sempere@protonmail.com>2023-03-28 11:18:54 -0600
commitca59138a2aef96960381f986b8c683634e4d8e63 (patch)
tree16c62f8a2b3bfe7ad55053294095f70a85d19613 /plugins/style/style.js
parentcc959fda4fac18f1c429158d1ffea24692276310 (diff)
tweak: move things around
Diffstat (limited to 'plugins/style/style.js')
-rw-r--r--plugins/style/style.js49
1 files changed, 0 insertions, 49 deletions
diff --git a/plugins/style/style.js b/plugins/style/style.js
deleted file mode 100644
index bc0540e..0000000
--- a/plugins/style/style.js
+++ /dev/null
@@ -1,49 +0,0 @@
-// Replicates the Stylus app: <https://addons.mozilla.org/en-GB/firefox/addon/styl-us/>
-
-var styles = null;
-
-if (document.domain == "forum.effectivealtruism.org"){
- styles = `
- .Layout-main {
- margin-left: 100px;
- }
- .SingleColumnSection-root {
- width: 1000px !important;
- max-width: 1400px !important;
- padding-left: 100px !important;
- }
- .NavigationStandalone-sidebar {
- display: none;
- }
- .intercom-lightweight-app{
- display: none;
- }
- `
- var styleSheet = document.createElement('style')
- styleSheet.innerText = styles
- document.head.appendChild(styleSheet)
- console.log('Style changed')
-}
-
-if (document.domain == "mail.proton.me" ){
- 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;
- }
- `
-}
-
-if(styles != null){
- var styleSheet = document.createElement('style')
- styleSheet.innerText = styles
- document.head.appendChild(styleSheet)
- console.log('Style changed')
-}
-
-document.body.style.visibility = "visible"