CowLoverSecret

ROBLOX Spam Bot

Jan 12th, 2015
880
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. alert("spam bot by cowloversecret loaded");
  2. javascript:var doc = document;
  3. var forums = "http://www.roblox.com/Forum/ShowForum.aspx?ForumID=";
  4. var board = 18;
  5. var floodcheck = 31000;
  6. var reply = "http://www.roblox.com/Forum/AddPost.aspx?PostID=";
  7. var frame = document.createElement('iframe');
  8. var threadview = "ctl00_cphRoblox_ThreadView1_ctl00_ThreadList";
  9. var body = "ctl00_cphRoblox_Createeditpost1_PostForm_PostBody";
  10. var postbutton = "ctl00_cphRoblox_Createeditpost1_PostForm_PostButton";
  11. var keywords = new Array("add me 1v1 quickscope","sweet","lol","hi bro","i dont understand","oppa gangnam style!","NOU","lol epic dude");
  12. /*var keywords = new Array("u just got bot trolled");*/
  13. var added = String.fromCharCode(1) + " "+ String.fromCharCode(1);
  14. var subject = "ctl00_cphRoblox_Createeditpost1_PostForm_PostSubject";
  15. var posts = 0;
  16. function Add(str){
  17. keywords.push(str);
  18. }
  19. function FindPost(){
  20. var doc = frame.contentDocument;
  21. var threds = doc.getElementById(threadview).firstElementChild;
  22. var post = threds.children[Math.floor(Math.random()*20)+5];
  23. var postlink = post.children[1].firstElementChild;
  24. var postid = postlink.href.substring(postlink.href.indexOf("=")+1);
  25. return postid;
  26. }
  27. function load() {
  28. var loc = frame.contentWindow.location;
  29. var url = loc.hostname+loc.pathname;
  30. if (loc.href == forums + board) {
  31. var postid = FindPost();
  32. frame.contentWindow.location = reply+postid;
  33. } else if(url == "www.roblox.com/Forum/AddPost.aspx"){
  34. frame.contentDocument.getElementById(subject).value = ":3 hai ";
  35. frame.contentDocument.getElementById(body).value = keywords[Math.floor(Math.random()*keywords.length)]+added;
  36. added += String.fromCharCode(1);
  37. frame.contentDocument.getElementById(postbutton).click();
  38. posts++;
  39. document.title = posts+" posts";
  40. } else {
  41. setTimeout("frame.contentWindow.location = forums+board;",floodcheck);
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment