forked from CST1229/Customized
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththemes.js
More file actions
42 lines (37 loc) · 1.04 KB
/
themes.js
File metadata and controls
42 lines (37 loc) · 1.04 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
if (document.cookie.includes("themes=dark")) {
window.onload = function() {
document.body.style.backgroundColor = "#171717";
document.body.style.color = "white";
document.getElementsByClassName("dropdown_dropdown_2cQyf")[0].style.borderColor = "#404040";
};
setTimeout(function(){
var els = document.getElementsByTagName("img");
for(var i = 0; i < els.length; i++)
{
els[i].style.filter = "brightness(5)";
}
}, 500)
}
if (document.cookie.includes("themes=scratch")) {
window.onload = function() {
document.body.style.backgroundColor = "#4d97ff";
document.body.style.color = "white";
setTimeout(function(){
var els = document.getElementsByTagName("img");
for(var i = 0; i < els.length; i++)
{
els[i].style.filter = "brightness(5)";
}
}, 500)
setTimeout(function(){
var els = document.getElementsByTagName("button");
for(var i = 0; i < els.length; i++)
{
els[i].style.backgroundColor = "white";
els[i].style.color = "black";
}
}, 500)
var els = document.getElementsByClassName("paint-editor_bitmap-button_GsX3L")[0];
els.style.border = "2px solid white";
}
}