话不多说,直接上代码
var appElement = document.querySelector('[ng-controller=chatSenderController]'); var $scope = angular.element(appElement).scope(); setInterval(function(){ var nowLocalTime = new Date(); var nowTime = nowLocalTime.toLocaleTimeString(); var s = nowLocalTime.getSeconds(); var h = nowLocalTime.getHours(); var m = nowLocalTime.getMinutes() var sh = 17 - h if(sh >= 0){ sh = sh+"小时" }else{ sh = "" } var sm = 60 - m; if(sm == "0"){ sm = "" }else{ sm = sm +"分钟" } var ss = 60 - s if(ss == "0"){ ss = "" } else { ss = ss + "秒" } // if(s == "0"){//此为一分钟一次 console.log() $scope.editAreaCtn = "现在是"+nowTime+"距离五一放假还剩" +sh + sm + ss ; $scope.sendTextMessage(); // } },1000)
登陆网页版微信
选择你要轰炸的对象
鼠标右键 打开控制台
选择console 选项
在下方空白处粘贴代码。
回车确定
setInterval(function(){$('.edit_area').html('需要发送的文字'); $(".edit_area").trigger($.Event("keydown", { keyCode: 13,ctrlKey: true})); $('.btn_send').click();},3000);
最新评论