← go back

I made a CINEMATIC BANNER MODE on WASTEOF :o

document.getElementsByClassName("bg-gray-100 dark:bg-gray-800 w-full pt-28 md:pt-16 banner group")[0].setAttribute("style", "background-color: rgba(17, 24, 39, 0.5) !important"); // Remove the non-cbm banner and replace it with a nice transparent fill background
document.body.style.backgroundImage = "url(https://api.wasteof.money/users/" + document.getElementsByClassName("font-bold whitespace-nowrap text-2xl md:text-4xl")[0].innerText.slice(1).replaceAll(" \n ", "") + "/banner)"; // Get the banner by checking the username header and fetching the api, then setting it to the body
document.body.style.backgroundAttachment = "fixed"; // Set the banner attachement so it doesn't repeat

// Remove CBM if URL changes
function checkURLchange(){
    if(window.location.href != oldURL){
    document.body.style.backgroundImage = null;
    document.body.style.backgroundAttachment = null;
        oldURL = window.location.href;
    }
}

var oldURL = window.location.href;
setInterval(checkURLchange, 1000);
May 14, 2022, 5:49 PM
4 0 9

Comments