Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
"use strict";
/* Comment username styling */
document.addEventListener("load", function () {
setTimeout(function () {
console.log("Checking for comments");
var commentAuthors = document.querySelectorAll(".cs-comment-author");
commentAuthors.forEach(function (comment) {
if (comment.innerHTML === "GxarPlays") {
console.log("Found GxarPlays, coloring orange");
comment.style.color = "#dc5d18";
comment.style.fontWeight = "bold";
comment.style.textShadow = "1px 1px 5px #ff7a1b";
} else if (comment.innerHTML === "BestSpyBoy") {
console.log("Found BestSpyBoy, coloring purple");
comment.style.color = "#a600a6";
comment.style.fontWeight = "bold";
comment.style.textShadow = "1px 1px 5px #ff00ff";
}
});
}, 2000);
});