Advertisement
DudeWithFood

Bot 2

Jul 28th, 2015
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var doc = document;
  2. var forums = "http://forum.roblox.com/Forum/ShowForum.aspx?ForumID=";
  3. var board = 18;
  4. var floodcheck = 30000;
  5. var reply = "http://forum.roblox.com/Forum/AddPost.aspx?PostID=";
  6. var frame = document.createElement('iframe');
  7. var threadview = "ctl00_cphRoblox_ThreadView1_ctl00_ThreadList";
  8. var body = "ctl00_cphRoblox_Createeditpost1_PostForm_PostBody";
  9. var postbutton = "ctl00_cphRoblox_Createeditpost1_PostForm_PostButton";
  10. var keywords = new Array("OP, that is a great idea","sure, if you pay me","I'm not a bot people!","I like the way you think OP"," Wow man, that's racist","I only agree slightly, there is a few flaws","OP is my favorite OT'er","Your so nice","That wasn't funny","Somehow your post offends me","Stop saying I'm a bot!","My IQ is no match for you","sup OP","Your character looks nice!","Have a good day!","OP going HAM","Thanks for your cooperation, I knew we could work something out","OP remember an IQ is just a number"," hello!!!","I think that was the wrong one","I got one question for ya, WHAT ARE THOSSSE!","OP this is quite flattering that you could post like that","If you have questions, comments, or concerns OP, dial 1","If your reading this sentence, then that means my friend left a bot on","hola","That is so last century","cool!","the video was age restricted that's why","Thats it, im done!","https://www.youtube.com/watch?v=v5hej6bd9v4","amazing!","not quite sure, try the other one"," If your trying to have a conversation with me don't as i am simply not human","a human didnt write this post","+1 post count","yes","meh","nope","your giving me such a hard time right now","Thanks,but...","I like your style","Im speechless","b8 m8","quality post","lol nice try though","you did good OP","https://www.youtube.com/watch?v=RMtKoSA9sNA","https://www.youtube.com/watch?v=-dY77j6uBHI"," ");
  11. var keywords2 = new Array(" ","  ","   ","    ","     ","      ");
  12.  
  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 == "forum.roblox.com/Forum/AddPost.aspx"){
  34.                 frame.contentDocument.getElementById(subject).value = "RE: ";
  35.                 frame.contentDocument.getElementById(body).value = keywords[Math.floor(Math.random()*keywords.length)]+keywords2[Math.floor(Math.random()*keywords2.length)]+keywords2[Math.floor(Math.random()*keywords2.length)]+keywords2[Math.floor(Math.random()*keywords2.length)]+added;
  36.                 frame.contentDocument.getElementById(postbutton).click();
  37.                 posts++;
  38.                 document.title = posts+" posts";
  39.         } else {
  40.                 setTimeout("frame.contentWindow.location = forums+board;",floodcheck);
  41. }
  42. }
  43.  
  44. frame.onload = load;
  45. frame.src = forums+board;
  46. frame.height = 600;
  47. frame.width = 900;
  48. frame.style.position = "absolute";
  49. frame.sandbox = "allow-same-origin allow-scripts allow-forms";
  50. document.body.innerHTML = "";
  51. document.body.appendChild(frame);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement