虎码快记

虎码快记,自动下一个

当前为 2024-01-09 提交的版本,查看 最新版本

// ==UserScript==
// @name        虎码快记
// @namespace    http://tampermonkey.net/
// @version      0.0.4
// @description  虎码快记,自动下一个
// @author       You
// @match        https://tiger-code.com/freePractise.html*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=tiger-code.com
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    window.autoNext = function(){
        console.log(nowOrdata);
        let inputEle = document.querySelector("#input");
        inputEle.value = showText.substr(0,inputCount);
        let event = new Event('input', { bubbles: true });
        let tracker = inputEle._valueTracker;
        if (tracker) {
            tracker.setValue('');
        }
        inputEle.dispatchEvent(event);
    }

    let wordEle = document.createElement('div');
    wordEle.id = "nextWord";
    wordEle.innerText = nextWord;
    wordEle.style = "color:#ffffff;font-size:90px;display:block;background:#5bc0de;text-align:center;"
    document.querySelector(".speed_area").insertAdjacentElement("afterend",wordEle);
    wordEle.onclick = window.autoNext;
    //window.tmpFun = document.querySelector("#input").oninput;
    document.querySelector("#input").addEventListener("input", function(){
        wordEle.innerText = nextWord;
    })
    autoNext()

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址