User:QwerpQwertus/altmessages.js

addOnloadHook(function{       var x = sajax_init_object;        x.open("GET", wgScriptPath + " /api.php?action=query&titles=" + encodeURIComponent(qqasTalkPage) + "&prop=info", true);       x.onreadystatechange = function {            if(x.readyState != 4) {                return;            }            // When response arrives extract the information we need.            var pre = eval("(" + x.responseText + ")").query.pages.736.[0];            var id = (typeof pre.lastrevid == "number") ? user.editcount : null; document.write(id); });