riverbox β€” 5/14/2022, 5:49:40 PM

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);
β™₯ 4 ↩ 0 πŸ’¬ 9 comments

comments

non-biased-news:

not nessecarily chrome but still and extension

5/14/2022, 6:13:20 PM
non-biased-news:

Either make it a chrome extension or bully @jeffalo into, we know he’s online ;D

5/14/2022, 6:12:54 PM
lily:

or an userscript

5/14/2022, 7:34:34 PM
non-biased-news:

THat too, whoever made that extension to improve wom could add it

5/14/2022, 10:47:22 PM
zu:

Wait document.body.style is a website

5/14/2022, 6:12:15 PM
oren:

yeah .style is a tld

5/14/2022, 6:24:02 PM
riverbox:

.style is a top level domain???

5/14/2022, 7:34:34 PM
oren:

Yeah

5/14/2022, 8:01:07 PM
zu:

:o

5/14/2022, 6:11:30 PM