Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var doc = document;
- var forums = "http://www.roblox.com/Forum/ShowForum.aspx?ForumID=";
- var board = 18;
- var floodcheck = 32000;
- var reply = "http://www.roblox.com/Forum/AddPost.aspx?PostID=";
- var frame = document.createElement('iframe');
- var threadview = "ctl00_cphRoblox_ThreadView1_ctl00_ThreadList";
- var body = "ctl00_cphRoblox_Createeditpost1_PostForm_PostBody";
- var postbutton = "ctl00_cphRoblox_Createeditpost1_PostForm_PostButton";
- 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"," ");
- var keywords2 = new Array(" "," "," "," "," "," ");
- var added = String.fromCharCode(1) + " "+ String.fromCharCode(1);
- var subject = "ctl00_cphRoblox_Createeditpost1_PostForm_PostSubject";
- var posts = 0;
- function Add(str){
- keywords.push(str);
- }
- function FindPost(){
- var doc = frame.contentDocument;
- var threds = doc.getElementById(threadview).firstElementChild;
- var post = threds.children[Math.floor(Math.random()*20)+5];
- var postlink = post.children[1].firstElementChild;
- var postid = postlink.href.substring(postlink.href.indexOf("=")+1);
- return postid;
- }
- function load() {
- var loc = frame.contentWindow.location;
- var url = loc.hostname+loc.pathname;
- if (loc.href == forums + board) {
- var postid = FindPost();
- frame.contentWindow.location = reply+postid;
- } else if(url == "www.roblox.com/Forum/AddPost.aspx"){
- frame.contentDocument.getElementById(subject).value = "RE: ";
- 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;
- frame.contentDocument.getElementById(postbutton).click();
- posts++;
- document.title = posts+" posts";
- } else {
- setTimeout("frame.contentWindow.location = forums+board;",floodcheck);
- }
- }
- frame.onload = load;
- frame.src = forums+board;
- frame.height = 600;
- frame.width = 900;
- frame.style.position = "absolute";
- frame.sandbox = "allow-same-origin allow-scripts allow-forms";
- document.body.innerHTML = "";
- document.body.appendChild(frame);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement