c语言sscanf函数的用法是什么
355
2022-09-23
JavaScript实现自动评论哔哩哔哩视频
代码:
// ==UserScript==// @name 自动评论哔哩哔哩视频// @namespace @version 0.1// @description try to take over the world!// @author You// @match @grant none// ==/UserScript==(function(){ // 等待两秒钟再进行评论 setTimeout(function(){ var c=["陌生人好好的呦。","别看啦,照顾好自己","喧闹的世界,看到这条评论。洗洗睡吧吧!"]; var n = -1; var m = 3; var temp_count = Math.floor(Math.random()*(n-m+1))+m;//取m-n之间的随机数 [m,n] //document.getElementsByClassName("tool-item-comment")[0].click();//能够打开评论区啦 var time = new Date(); var t = " 我在: " +time.getFullYear()+"年 "+(time.getMonth()+1)+"月 "+time.getDate()+"日 "+time.getHours()+":"+time.getMinutes()+":"+time.getSeconds()+" 来过!"; //document.getElementById("comment_content").value = t//评论时间 document.getElementsByClassName("ipt-txt")[0].value = c[temp_count] + t;//能够赋值啦 document.getElementsByClassName("comment-submit")[0].click(); //发表评论成功!},9999);//ajax do something})();
结果:
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~