Advertisement
DudeWithFood

Forum Script

Jun 24th, 2015
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var RandomPosts = ["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"]
  2. var ForumId = 18
  3. function Post(){
  4.         $.get("http://www.roblox.com/Forum/ShowForum.aspx?ForumID=" + ForumId,function(Data){
  5.                 var Link = $(Data).find(".linkSmallBold")[4].href
  6.                 Link = "http://www.roblox.com/Forum/AddPost.aspx?mode=flat&PostID=" + Link.replace("http://www.roblox.com/Forum/ShowPost.aspx?PostID=","")
  7.                 $.get(Link,function(Data){
  8.                         var VS = Data.match(/id="__VIEWSTATE" value="(.+)"/)[1]
  9.                         var EV = Data.match(/id="__EVENTVALIDATION" value="(.+)"/)[1]
  10.                         $.post(Link,{
  11.                                 "__VIEWSTATE" : VS,
  12.                                 "__EVENTVALIDATION" : EV,
  13.                                 "ctl00$cphRoblox$Createeditpost1$PostForm$PostSubject" : "Re: -",
  14.                                 "ctl00$cphRoblox$Createeditpost1$PostForm$PostBody" : RandomPosts[Math.floor((Math.random() * RandomPosts.length) + 1)],
  15.                                 "ctl00$cphRoblox$Createeditpost1$PostForm$PostButton" : "Post"
  16.                         })
  17.                 })
  18.         })
  19. }
  20. Post()
  21. var Interval = setInterval(function(){
  22.         Post()
  23. },40000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement