awesomeTheme: disable Awesomness with a toggle if you hate fun

This commit is contained in:
wukko 2024-04-01 07:01:37 +06:00
parent 78b60a72a8
commit 99248dec86
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@ function changeIcon(button, src) {
// load an Awesome theme on an Awesome day
let date = new Date();
if (date.getMonth() === 3 && date.getDate() === 1) {
if (date.getMonth() === 3 && date.getDate() === 1 && localStorage.getItem("disableChangelog") !== "true") {
let head = document.head;
head.appendChild(document.createElement('link')).rel = 'stylesheet';

View File

@ -653,9 +653,10 @@ export default function(obj) {
'FilenamePreviewAudioAuthor'
])}
</script>
<script src="cobalt.js"></script>
<!--- Awesome theme --->
<script src="aprilFools/awesomeTheme.js"></script>
<!--- Awesome theme --->
<script src="cobalt.js"></script>
</body>
</html>
`