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

Pages: 1-

GET Script under wakaba

Name: OP 2011-07-26 6:08

Hey, men. Can some of you rewrite the get script to get it used under Wakaba ib engine? I'm programming noob and all my skill ends in creating few php stanzas. I tried to rewrite some paths, but it doesn't seem to be work.

I'll be very thankful for that.

So, here's the code:

// ==UserScript==
// @name           GET
// @namespace      sdaghfjksdhagsfdhagjksdflahsddsf
// @include        http://boards.4chan.org/*
// ==/UserScript==

var first = true, n = 0;

function check() {
    if (n == 0) return;
    var k = first ? n : (n-1);
    GM_xmlhttpRequest({
        method: "HEAD",
        url: "http://sys.4chan.org" + location.pathname.match(/\/[^\/]+\//)[0] + "imgboard.php?res=" + k,
        onload: function(response) {
            if (n == 0) return;
            if (response.status == 200) {
                if (first) {
                    alert(n + " passed");
                    n = 0;
                } else {
                    document.getElementsByName("post")[0].submit();
                }
            } else {
                first = false;
                check();
            }
        }
    });
}
document.getElementsByName("post")[0].addEventListener("dblclick", function(e) {
    var m = document.getElementsByName("com")[0].value.match(/(\d+)  /);
    if (m) {
        first = true;
        n = parseInt(m[1]);
        check();
    }
}, false);

Just saying that the path is differ from 4chan's path. Wakaba's path looks like http://wakaib.org/b/res/361738734.html

Thanks.

Name: Anonymous 2011-07-26 6:29

I don't see any code.

Name: Anonymous 2011-07-26 6:38

OP, we'd gladly help you, but it seems you forgot to attach the aforementioned code.

Name: Anonymous 2011-07-26 9:40

Just use code tags next time, OK?

Name: Anonymous 2013-09-01 14:41


I just saw a truck driving down the train tracks. It looked much like this pic but white and had yellow flashing lights. I guess it is probably for maintenance.

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