AC's Hitbox.io Cleanup Script

Hitbox.io Script for removing "unnecessary" things

// ==UserScript==
// @name        AC's Hitbox.io Cleanup Script
// @namespace   Violentmonkey Scripts
// @match       *://*.hitbox.io/*
// @exclude-match *://*.hitbox.io/robots.txt
// @exclude-match *://*.hitbox.io/beta
// @grant       none
// @version     0.2.0
// @author      Aggressive Combo
// @license     ISC
// @description Hitbox.io Script for removing "unnecessary" things
// ==/UserScript==

(function() {
  "use strict";

  window.addEventListener("load", () => {
    const leftAd = document.getElementById("adboxverticalleft");
    const rightAd = document.getElementById("adboxverticalright");

    if (leftAd) leftAd.remove();
    if (rightAd) rightAd.remove();

    const mainIframeContainer = document.getElementById("appContainer");

    if (!mainIframeContainer) return;

    const chazEmail = document.getElementById("email");
    const songCredit = document.getElementById("songcredit");

    if (chazEmail) chazEmail.remove();
    if (songCredit) songCredit.remove();

    mainIframeContainer.style.border = "none";


    console.log("%cScript finished!", "background-color: rgb(20, 0, 40); color: rgb(128, 0, 255); font-weight: bold;");
  });
})();