目前我有一个我为个人使用创建的文章中继器 它基本上进入链接并输入文本以及增加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)
听起来像垃圾邮件脚本,但要重复一个字符:http://jsperf.com/repeating-character –