NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Cria espaço enfeite uol antiga // @version 0.1 // @description Cria espaço enfeite uol antiga // @author megaLucario // @match *.batepapo.uol.com.br/room.html // @grant none // ==/UserScript== 'use strict'; var eleBloco=document.getElementById("bloco_mensagem"); var tblaBloco=eleBloco.getElementsByTagName('table'); var trlaBloco=tblaBloco[0].getElementsByTagName('tr'); var tdlaBloco=trlaBloco[0].getElementsByTagName('td'); tdlaBloco[2].innerHTML="<input type='text' id='enfeite1' style='width:4%'><input name='me' type='text' maxlength='1024' id='textmod' class='txtTexto' autocomplete='off' style='width:90%'><input type='text' id='enfeite2' style='width:4%'>"; //tdlaBloco[3].innerHTML="<input type='image' src='http://bp.imguol.com.br/v07/botoes/enviar.gif' class='botao-enviar' onclick=\"document.getElementById('textmod').value=document.getElementById('enfeite1').value+document.getElementById('textmod').value+document.getElementById('enfeite2').value; var emotiCl = setInterval(function(){ for(n=0;n<400;n++){ var vt=''; var vt2=''; if(n<10) { vt=vt+'0'+n.toString(); vt2='0'+n.toString(); } else { vt=vt+n.toString(); vt2=vt2+n.toString();} var oldMensagemOf=document.getElementById('view_panel').innerHTML; if (oldMensagemOf.indexOf('[s'+vt+']') != -1 || oldMensagemOf.indexOf('[a'+vt2+']') != -1){ document.getElementById('view_panel').innerHTML=(oldMensagemOf.replace('[s'+vt+']', '<img src=http://bp.ecchis.com.br/emoticons/e'+vt+'.png>')).replace('[a'+vt2+']', '<img src=http://bp.ecchis.com.br/emoticons/ativos/'+vt2+'.gif>'); }} clearInterval(emotiCl);}, 2000)\">"; tdlaBloco[3].innerHTML="<input type='image' src='http://bp.imguol.com.br/v07/botoes/enviar.gif' class='botao-enviar' onclick=\"document.getElementById('textmod').value=document.getElementById('enfeite1').value+document.getElementById('textmod').value+document.getElementById('enfeite2').value\">";