Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Оп
- // @namespace borey nyasha
- // @include http://chatadelic.net/chat/8739
- // @version 1
- // @grant none
- // ==/UserScript==
- var text = "http://newpvd.hostinger.info/chat/smileys/doge.png";
- var inter = 3;
- var end = 0;
- function wipe()
- {
- if (document.getElementById("chatInputMessageText"))
- {
- edit = document.getElementById("chatInputMessageText");
- button = document.getElementsByClassName("chatSendButton");
- }
- else
- if(frames[0].document.getElementById("chatInputMessageText"))
- {
- edit = frames[0].document.getElementById("chatInputMessageText");
- button = frames[0].document.getElementsByClassName("chatSendButton");
- }
- else
- {
- end = 1;
- }
- if(!end)
- {
- if(edit.value != '')
- buf = edit.value;
- else
- buf = '';
- //var rnd = Math.random() * (999 - 0) + 0;
- edit.value = text;
- event = document.createEvent("MouseEvent");
- event.initEvent("click", true, true);
- button[0].dispatchEvent(event);
- edit.value = buf;
- setTimeout(wipe,(inter * 10));
- }
- else
- alert("Нету чата");
- }
- wipe();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement