blob: db87911ac12357dc808deb0479c3de65a981c16f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* Theme */
const darkThemeStyle = document.styleSheets[1];
if (localStorage.getItem('theme') === 'light')
darkThemeStyle.disabled = true;
/* No JS */
const hideJSStylings = document.styleSheets[2];
hideJSStylings.disabled = true;
/* Presentation */
const presentationStyle = document.styleSheets[3];
if (window.location.href.indexOf('?a') > -1)
presentationStyle.disabled = true;
|