貼吧自動發帖指令碼
阿新 • • 發佈:2019-02-08
用於百度貼吧自動發帖,目前暫時無法通過驗證碼驗證.
//發帖間隔---可修改引數(單位:毫秒) var createIntetval = 5000; //發帖次數---可修改引數 var createCount = 5; //當前發帖次數計數 var nowCreateCount = 1; //定時器 var timer = window.setInterval( function(){ eval( "var word1=" + '"\\u' + (Math.round(Math.random() * 20901) + 19968).toString(16)+'"'); eval( "var word2=" + '"\\u' + (Math.round(Math.random() * 20901) + 19968).toString(16)+'"'); eval( "var word3=" + '"\\u' + (Math.round(Math.random() * 20901) + 19968).toString(16)+'"'); eval( "var word4=" + '"\\u' + (Math.round(Math.random() * 20901) + 19968).toString(16)+'"'); //發帖標題 var title = "【" + word1 + word2 + word3 + word4 + "】發帖標題" + new Date().getTime(); $("input[name=title]").val(title); //發帖內容 var content = "【" + word1 + word2 + word3 + word4 + "】發帖內容" + new Date().getTime(); $("#ueditor_replace").text(content) console.log("##################################################"); console.log("正在進行第" + nowCreateCount + "次發帖."); console.log("帖子標題:" + title); console.log("帖子內容:" + content); console.log("##################################################"); //發帖次數遞增 nowCreateCount++; //提交表單 $("button[title='Ctrl+Enter快捷發表']").click(); if (nowCreateCount == createCount) { //清除定時器 window.clearInterval(timer); console.log("發帖完成,總計發帖次數:" + createCount); } }, createIntetval);