話不多說,直接上代碼
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);
歡迎關注公眾號: