2014-02-13 30 views
0

目前我有一个我为个人使用创建的文章中继器 它基本上进入链接并输入文本以及增加1的数字以通过论坛上的Floodcheck。每次添加空间?

我希望不是在文本旁边张贴数字,而是每次在变量Text使用for循环前增加1,例如Text ,例如Text = Testing “Testing” “测试” “测试” 等 这是我现在的代码,请大家帮忙,谢谢。

var ID = prompt("ThreadID") 
var Bump = prompt("Number of posts") 
var Text = prompt("Text to repeat") 
var Bumps = 0 
var Page = "http://www.forum.com/forum.php?id=" + ID 
function Go(){ 
$.get(Page,function(Data){ 
     var VS = Data.match(/id="__VIEWSTATE" value="(.+)"/)[1] 
     var EV = Data.match(/id="__EVENTVALIDATION" value="(.+)"/)[1] 
     $.post(Page,{ 
      "__VIEWSTATE" : VS, 
      "__EVENTVALIDATION" : EV, 
      "ctl00$cphRoblox$Createeditpost1$PostForm$PostBody" : Text+" "+Bumps, 
      "ctl00$cphRoblox$Createeditpost1$PostForm$PostButton" : "Post" 
     }) 
    }) 
} 
Go() 
var Times = setInterval(function(){ 
if (Bumps == Bump){ 
      clearInterval(Times) 
    } 
    Go() 
    Bumps++ 
},40000) 
+1

听起来像垃圾邮件脚本,但要重复一个字符:http://jsperf.com/repeating-character –

回答

0

我会继续前进,并假设您有权发送任何论坛这是,所以在这里。

我不知道,如果你想之前或之后Text添加的空间,但是这是之前:

var ID = prompt("ThreadID") 
var Bump = prompt("Number of posts") 
var Text = prompt("Text to repeat") 
var whitespace_chars = ''; 
var Bumps = 0 
var Page = "http://www.roblox.com/Forum/AddPost.aspx?mode=flat&PostID=" + ID 
function Go(){  
    $.get(Page,function(Data){ 
      var VS = Data.match(/id="__VIEWSTATE" value="(.+)"/)[1] 
      var EV = Data.match(/id="__EVENTVALIDATION" value="(.+)"/)[1] 
      $.post(Page,{ 
       "__VIEWSTATE" : VS, 
       "__EVENTVALIDATION" : EV, 
       "ctl00$cphRoblox$Createeditpost1$PostForm$PostBody" : whitespace_chars + Text, 
       "ctl00$cphRoblox$Createeditpost1$PostForm$PostButton" : "Post" 
      }) 
     }) 
} 
Go() 
var Times = setInterval(function(){ 
    if (Bumps == Bump){ 
     clearInterval(Times) 
    } 
    Go() 
    Bumps++ 
    whitespace_chars += ' '; 
},40000) 

还有一种可能性,即网站将修剪后的身体。所以记住这一点。

声明:我没有测试它,我希望它能起作用。

+0

作品,谢谢! – user3247345

+0

很高兴听到!不要忘记投票! ;) –