EP info card clicker

Not a cheat/hack of any kind. This script automates clicking the info card.

当前为 2025-02-17 提交的版本,查看 最新版本

// ==UserScript==
// @name         EP info card clicker
// @namespace    http://tampermonkey.net/
// @version      1.0.0
// @description  Not a cheat/hack of any kind. This script automates clicking the info card.
// @author       cookertim
// @match        https://app.educationperfect.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license     MIT
// ==/UserScript==

(function() {
'use strict';
let click_toggle = false;
let clicker_task = 0;
  
const toggle_func = () => {
      if (click_toggle) {
        clearInterval(clicker_task);
    } else {
        clicker_task = setInterval(() => {
            document.querySelector(".information-controls > div:nth-child(1)").childNodes[1].click()
        }, 100)
    }
    click_toggle = !click_toggle;
}

window.document.addEventListener("keydown", e => {
    console.log('clicker triggered');

    if (e.altKey && e.key == "s") toggle_func();
});
  

})();