最近的一个活动,可能会用得到
需要谷歌浏览器,其它的自行摸索吧(部分浏览器本身是可以注入 js 代码)
单击进入安装插件:脚本管理器
单击进入安装脚本界面:GreasyFork
代码:
// ==UserScript==
// @name 妖火自动发吹牛
// @namespace http://blog.zgcwkj.cn
// @version 1.9.0.1.15.14.55
// @description zh-cn
// @author zgcwkj
// @match *://yaohuo.me/games/chuiniu/add*
// @match *://yaohw.com/games/chuiniu/add*
// @grant none
// ==/UserScript==
(function () {
'use strict';
if (document.title.indexOf("密码") == -1) {
if (document.title.indexOf("公开挑战") != -1) {
var toHtml_input = document.getElementsByTagName("input");
console.log(toHtml_input.length);
if (toHtml_input.length != 0) {
//==>随机妖晶(删掉的话,那么默认就是500)
var yaojing = 500 + Math.ceil(Math.random() * 10);
toHtml_input[0].value = yaojing;
//==>随机妖晶(删掉的话,那么默认就是500)
toHtml_input[1].value = "我是吹牛逼大神!";
toHtml_input[2].value = "不是";
toHtml_input[3].value = "当然";
//==>随机答案(删掉的话,那么默认就是答案一)
var toHtml_select = document.getElementsByTagName("select");
toHtml_select[0].value = Math.ceil(Math.random() * 2);
//==>随机答案(删掉的话,那么默认就是答案一)
toHtml_input[toHtml_input.length - 1].click();//确定按钮
} else {
setTimeout(function () {
window.location.href = '/games/chuiniu/add.aspx';
}, '2000');
}
} else {
console.log("不该运行");
}
} else {
console.log("输入密码");
}
})();
版权属于:zgcwkj
本文链接:https://blog.zgcwkj.cn/archives/76.html
转载声明:请注明本文章的标题及内容的出处和声明,谢谢
评论已关闭