Skip to content

Commit

Permalink
Update censor.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Krazete committed Apr 25, 2024
1 parent 573bca9 commit ffd3f4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions censor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
javascript:
var style = document.createElement("style");
style.innerHTML = `.censor {
var censorStyle = document.createElement("style");
censorStyle.innerHTML = `.censor {
opacity: 1 !important;
image-rendering: pixelated !important;
}
Expand Down Expand Up @@ -109,10 +109,10 @@ if (af) {
for (var e of sensed) {
e.parentElement.classList.remove("censor-parent");
}
style.remove();
censorStyle.remove();
}
else {
document.body.appendChild(style);
document.body.appendChild(censorStyle);
sensed = [];
censors = [];
sense();
Expand Down

0 comments on commit ffd3f4c

Please sign in to comment.