aboutsummaryrefslogtreecommitdiff
path: root/plugins/style/style.js
blob: 01524d0d4376ce954442353b43430d8e0886c0bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Replicates the Stylus app: <https://addons.mozilla.org/en-GB/firefox/addon/styl-us/>

if (document.domain == "forum.effectivealtruism.org"){
	var 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')
}

document.body.style.visibility = "visible"