87,964
社区成员
发帖
与我相关
我的任务
分享
javascript: void (
(function () {
var hash = {};
var a = document.evaluate('//input[(@type="radio") and not(@value="0")]//@name',
document,
null,
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
null);
if (a.snapshotLength){
for (var i = 0; i < a.snapshotLength; i++) {
if (!(a.snapshotItem(i).value in hash))
hash[a.snapshotItem(i).value] = 0;
hash[a.snapshotItem(i).value]++;
}
for (i in hash) {
document.evaluate('//input[(@type="radio") and not(@value="0") and @name="' + i + '"]',
document,
null,
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
null).snapshotItem(Math.floor(Math.random() * hash[i])).click();
}
}
var objs = document.getElementsByTagName("textarea");
for (var i = 0; i < objs.length; i++){
objs[i].focus();
objs[i].value = "E00813";
objs[i].blur();
}
var objs = document.getElementsByTagName("textarea");
for (var i = 1; i < objs.length; i++){
objs[i].focus();
objs[i].value = "张三";
objs[i].blur();
}
var objs = document.getElementsByTagName("textarea");
for (var i = 2; i < objs.length; i++){
objs[i].focus();
objs[i].value = "PC";
objs[i].blur();
}
var objs = document.getElementsByTagName("textarea");
for (var i = 3; i < objs.length; i++){
objs[i].focus();
objs[i].value = "666666";
objs[i].blur();
}
var choose = document.getElementsByTagName("select");
for (var p = 0; p < choose.length; p++) {
choose[p].focus();
choose[p].value = "1";
choose[p].blur();
}
var choose = document.getElementsByTagName("select");
for (var p = 1; p < choose.length; p++) {
choose[p].focus();
choose[p].value = "1";
choose[p].blur();
}
})());
function validate(){return true;}
var btn = document.getElementById("submit_button");
window.setTimeout(btn.click(),2000);