pioneervan8吧 关注:30贴子:14,071
  • 3回复贴,共1
二楼


IP属地:广东1楼2014-10-21 13:20回复
    javascript:var content;var step;var speed;var allcount;var timer;var tieba;function init(){ content=prompt("请输入回帖内容:","楼主好厉害"); 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回帖:"+content+"\n频率:"+speed+"毫秒\n每次发帖数:"+step+"\n全部数量:"+allcount+"\n")){ return; } tieba=rich_postor._getData(); tieba.content=content; timer=setInterval("reply()",speed);}function reply(){ for(var i=0;i<step && allcount;i++){ PostHandler.post(rich_postor._option.url,tieba,function(I){},function(I){}); typeof allcount=="number"?allcount--:**; } allcount?**:clearTimeout(timer)|alert("盖楼完成");}init();void 0;


    IP属地:广东2楼2014-10-21 13:21
    回复
      javascript:var content;var step;var speed;var allcount;var timer;var tieba;function init(){ content=prompt("请输入回帖内容:","盖楼"); 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回帖:"+content+"\n频率:"+speed+"毫秒\n每次发帖数:"+step+"\n全部数量:"+allcount+"\n")){ return; } tieba=rich_postor._getData(); tieba.content=content; timer=setInterval("reply()",speed);}function reply(){ for(var i=0;i<step && allcount;i++){ PostHandler.post(rich_postor._option.url,tieba,function(I){},function(I){}); typeof allcount=="number"?allcount--:**; } allcount?**:clearTimeout(timer)|alert("盖楼完成");}init();void 0;


      IP属地:广东3楼2014-10-21 13:24
      回复
        原创!这次可以转,但不可以说是自己原创!
        代码送上:javascript:function reply(a,b){var c={ie:"utf-8",kw:PageData.forum.forum_name,fid:PageData.forum.forum_id,tid:PageData.thread.thread_id,quote_id:b,tbs:PageData.tbs,content:a,};return $.post("http://tieba.baidu.com/f/commit/post/add ",c),console.log("已回复"+timer+"次"),++timer,timer>config.times?(clearInterval(run),alert("代码执行完毕,即将刷新"),setTimeout("location.reload()",1e3),0):void 0}var run,config={content:prompt("请输入回帖内容","test")||"",pid:prompt("请输入要回复的楼层号(普通回复直接确定)",""),times:prompt("请输入回复次数","10000")||1,standby:prompt("请输入间隔时间(不可填0),单位:秒","2")||6},timer=1,cmfcfg='回帖内容:"'+config.content+'"\n';cmfcfg+="--"==config.pid?"回复楼层:普通回复\n":"回复楼层:"+config.pid+"\n",cmfcfg+="回复次数:"+config.times+"\n"+"时间间隔:"+config.standby+"s\n"+"确认参数正确开始回复?",1==confirm("请核对参数后确认执行\n"+cmfcfg)?1==config.times?(reply(config.content,config.pid),setTimeout("location.reload()",1e3)):(reply(config.content,config.pid),run=setInterval("reply(config.content,config.pid);",1e3*config.standby)):(alert("代码


        IP属地:广东来自Android客户端4楼2014-10-23 23:27
        回复