Stempelfarbe passt sich dem Likestatus an
This commit is contained in:
parent
7cf80d38d8
commit
cbebbdb817
@ -23,10 +23,7 @@
|
||||
],
|
||||
|
||||
"web_accessible_resources": [
|
||||
"media/stempel-witzig.png",
|
||||
"media/stempel-witzig-disabled.png",
|
||||
"media/stempel-nicht-witzig.png",
|
||||
"media/stempel-nicht-witzig-disabled.png"
|
||||
"media/*"
|
||||
]
|
||||
|
||||
}
|
||||
|
10
witzig.js
10
witzig.js
@ -54,9 +54,19 @@ function inject() {
|
||||
log("Stempelfläche vergrößert.");
|
||||
var image_container_object = document.querySelectorAll(image_container_path);
|
||||
log("Packe Stempel aus...");
|
||||
if(container_object[0].classList.contains('style-default-active')) {
|
||||
inject_image(image_container_object[0], getURL("media/stempel-witzig.png"));
|
||||
}
|
||||
else {
|
||||
inject_image(image_container_object[0], getURL("media/stempel-witzig-disabled.png"));
|
||||
}
|
||||
log("Witzig!");
|
||||
if(container_object[1].classList.contains('style-default-active')) {
|
||||
inject_image(image_container_object[1], getURL("media/stempel-nicht-witzig.png"));
|
||||
}
|
||||
else {
|
||||
inject_image(image_container_object[1], getURL("media/stempel-nicht-witzig-disabled.png"));
|
||||
}
|
||||
log("Nicht Witzig!");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user