User:Cap123/AnonChat.js

/* * Anonymous Chat * By Cap123 */ if (wgPageName == 'Special:AnonChat') { document.getElementById('mw-content-text').innerHTML = '<input type="hidden" name="ip" id="ip" value=' + ip + ' ' } else { return; } function SendMessage { var chat-message = document.anonchat.msg.value; var getip = document.anonchat.ip.value; var msg3 = getip + nmbr; var nmbr = 0;

var post = document.createElement("div"); post.setAttribute('id',math.random); post.setAttribute('class',msg3);

} function ip(json) { document.write(json); } var script = document.createElement("script") script.setAttribute('src','http://tampisid.x10.mx/ip.php?callback=ip'); document.getElementByTag('head').appendChild('script');