Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Оп
  3. // @namespace borey nyasha
  4. // @include http://chatadelic.net/chat/8739
  5. // @version 1
  6. // @grant none
  7. // ==/UserScript==
  8.  
  9.  
  10. var text = "http://newpvd.hostinger.info/chat/smileys/doge.png";
  11. var inter = 3;
  12. var end = 0;
  13. function wipe()
  14. {
  15. if (document.getElementById("chatInputMessageText"))
  16. {
  17. edit = document.getElementById("chatInputMessageText");
  18. button = document.getElementsByClassName("chatSendButton");
  19. }
  20. else
  21. if(frames[0].document.getElementById("chatInputMessageText"))
  22. {
  23. edit = frames[0].document.getElementById("chatInputMessageText");
  24. button = frames[0].document.getElementsByClassName("chatSendButton");
  25. }
  26. else
  27. {
  28. end = 1;
  29. }
  30. if(!end)
  31. {
  32. if(edit.value != '')
  33. buf = edit.value;
  34. else
  35. buf = '';
  36. //var rnd = Math.random() * (999 - 0) + 0;
  37. edit.value = text;
  38. event = document.createEvent("MouseEvent");
  39. event.initEvent("click", true, true);
  40. button[0].dispatchEvent(event);
  41. edit.value = buf;
  42. setTimeout(wipe,(inter * 10));
  43. }
  44. else
  45. alert("Нету чата");
  46. }
  47. wipe();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement