Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

World4ch background replacement

Name: Anonymous 2010-03-16 22:14

Konbanwa, /prog/. You may know me as that annoying fool who bothered you some time ago about a Greasemonkey script that would allow the use of [aa] tags on the imageboards. Well, as you might have expected, the plan failed miserably and I gave up. Fear not, however, for today I come to you not with a request but with a gift! ...albeit an imperfect one, most likely. In fact that's why I come to you once more.

You see, after visiting 2chan's SJIS board, I could not help but envy their moé background so once more I decided to... well... steal other people's code to replace those mean-looking bricks of Pseud0ch with said 2chan bg. But this time it actually worked! The reason I'm here is to ask the experts to optimise this code to an enterprise level before I release it. Commercially.

The code:
var css = "body.board{background-image:url(http://www.2chan.net/ba.gif);"

if (typeof GM_addStyle != "undefined") {
    GM_addStyle(css);
} else if (typeof addStyle != "undefined") {
    addStyle(css);
} else {
    var heads = document.getElementsByTagName("head");
    if (heads.length > 0) {
        var node = document.createElement("style");
        node.type = "text/css";
        node.innerHTML = css;
        heads[0].appendChild(node);
    }
}


The bricks show up for a second every pageload. I pretty much just cut and pasted the code until it worked so if there's any extra luggage or whatnot, please feel free to baste it with your knowledgous ejaculation!

Name: Anonymous 2010-03-16 23:27

NO EXCEPTIONS.

Name: Anonymous 2010-03-17 3:11

[b]DEREFERENCE MY ANUS[/B]

Name: Anonymous 2010-03-17 4:55

That background sucks it's totally not kawaii

Name: Anonymous 2010-11-13 20:20

Name: Anonymous 2011-02-02 23:39

Name: Anonymous 2013-08-31 17:52


 English version drops tonight. Are you ready?

Name: Anonymous 2013-08-31 19:23


Time enough has passed for a moebeetus thread. heart-stopping images abound. Lay it on thick

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List