|
发表于
2021-11-28 14:09:53
|
显示全部楼层
感谢大佬完美解决
// ==UserScript==
// @name 冰火龙登录主
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://qpanpan.com/*
// @icon https://www.google.com/s2/favicons?domain=tampermonkey.net
// @grant none
// ==/UserScript==
(function() {
'use strict';
setTimeout(()=>{
var a=document.querySelector("input[type=text]");
const evt = new Event('input');
a.value="av0dxs";
a.dispatchEvent(evt);
// const prop = Object.keys(a).find(p => p.startsWith('__reactEventHandlers'));
// a.onKeyDown(evt);
var b=document.querySelector("input[type=password]");
const evtt = new Event('input');
b.value="996655693";
b.dispatchEvent(evtt);
document.querySelector('button[type=button]').click();
},1000)
})(); |
|