微信通过网页版定时推送消息脚本

时间:2018-09-03 12:07:00   收藏:0   阅读:273

1.登录微信网页版 
2.选择对应的联系人 
3.打开Javascript console 
4.输入脚本

脚本内容:

setInterval(function(){
if(new Date().toLocaleString().indexOf(‘2017/11/13 下午2:25:00‘)===0) 
{
$(‘.edit_area‘).html(‘test script‘);
$(".edit_area").trigger($.Event("keydown", { keyCode: 13,ctrlKey: true}));
$(‘.btn_send‘).click();
}
},1000);

 

 

其中test script处为想要发送的消息内容,时间格式使用new Date().toLocaleString();来查看

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!