Advertisement
DudeWithFood

ad bot

Oct 24th, 2015
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var doc = document;
  2. var forums = "http://www.roblox.com/Forum/ShowForum.aspx?ForumID=";
  3. var board = 18;
  4. var floodcheck = 32000;
  5. var reply = "http://www.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("please play my game http://www.roblox.com/games/234942949/play-it-or-i-kill-you","new game! http://www.roblox.com/games/234942949/play-it-or-i-kill-you ","sweet game guys http://www.roblox.com/games/234942949/play-it-or-i-kill-you","COOL NEW FREE GAME>>>http://www.roblox.com/games/234942949/play-it-or-i-kill-you","hot game 3000000 visits! http://www.roblox.com/games/234942949/play-it-or-i-kill-you","get this game to 100 dislikes! http://www.roblox.com/games/234942949/play-it-or-i-kill-you","this game needs a lot of dislikes http://www.roblox.com/games/234942949/play-it-or-i-kill-you","hey guys a new game aiming to get a lot of dislikes http://www.roblox.com/games/234942949/play-it-or-i-kill-you"," ");
  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 == "www.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