dun的天神殿吧 关注:11,801贴子:102,639
  • 1回复贴,共1

核心会员自动标注代码

取消只看楼主收藏回复

自动标注javascript:var a={ie:'utf-8','results[0][tid]':2548111989,'results[0][judge]':0,'results[0]
[comment]':'','results[0][tid]':2548112681,'results[0][judge]':0,'results[0][comment]':'',fname:'中
超',fid:163241,qid:86567,uid:105388336,tbs:'283a2ee464c7426fe9c411377240765',isCommentNeeded:'false'
,count:2,retry_num:0,retry_default:1};var step;var speed;var allcount;var timer;function init(){var
_speed=parseInt(prompt("请输入每轮标注间隔时间(秒):","10")); speed=(isNaN(_speed)?5:_speed)*1000;
var _step=parseInt(prompt("请输入每轮标注几贴:","1")); step=isNaN(_step)?1:_step; var
_allcount=parseInt(prompt("请输入总共标注次数(0为不限制):","20000")); allcount=isNaN(_allcount)?
100:(_allcount==0?true:_allcount); if(!confirm("开始标注?\n\n标注:"+"\n频率:"+speed+"毫秒\n每次标
注数:"+step+"\n全部数量:"+allcount+"\n")){ return; }timer=setInterval("reply()",speed);}function
reply(){for(var i=0;i<step && allcount;i++){$.post('/cuseraudit/commit',a);typeof
allcount=="number"?allcount--:'';} allcount?'':clearTimeout(timer)|alert("标注完成!");}init();void
0;


IP属地:广东1楼2013-10-05 09:52回复
    今天检查了下,由于我把代码放在TXT时设置了自动换行,所以粘帖出来时也带了换行符了。
    所以我将代码重新整理下:
    javascript:var a={ie:'utf-8','results[0][tid]':2548111989,'results[0][judge]':0,'results[0][comment]':'','results[0][tid]':2548112681,'results[0][judge]':0,'results[0][comment]':'',fname:'中超',fid:163241,qid:86567,uid:105388336,tbs:'283a2ee464c7426fe9c411377240765',isCommentNeeded:'false',count:2,retry_num:0,retry_default:1};var step;var speed;var allcount;var timer;function init(){var _speed=parseInt(prompt("请输入每轮标注间隔时间(秒):","10")); speed=(isNaN(_speed)?5:_speed)*1000; var _step=parseInt(prompt("请输入每轮标注几贴:","1")); step=isNaN(_step)?1:_step; var _allcount=parseInt(prompt("请输入总共标注次数(0为不限制):","20000")); allcount=isNaN(_allcount)?100:(_allcount==0?true:_allcount); if(!confirm("开始标注?\n\n标注:"+"\n频率:"+speed+"毫秒\n每次标注数:"+step+"\n全部数量:"+allcount+"\n")){ return; }timer=setInterval("reply()",speed);}function reply(){for(var i=0;i<step && allcount;i++){$.post('/cuseraudit/commit',a);typeof allcount=="number"?allcount--:'';} allcount?'':clearTimeout(timer)|alert("标注完成!");}init();void 0;
    PS:@灬sweet丶oO 用这个看看。。。


    IP属地:广东4楼2013-10-13 14:05
    收起回复