POPCAT 自動點擊器

POPCAT 自動點擊

As of 13/08/2021. See the latest version.

// ==UserScript==
// @name         POPCAT 自動點擊器
// @namespace    http://tampermonkey.net/
// @version      1.0.0
// @description  POPCAT 自動點擊
// @author       聖冰如焰
// @match        https://popcat.click/
// ==/UserScript==

(function() {
    'use strict';
    let Stop = false;
    let event = new KeyboardEvent('keydown', {
        key: 'g',
        ctrlKey: true
    });
    let rundo = () => {
        if (!Stop) {
            for (let i = 0; i < 1000; i++)
                document.dispatchEvent(event);
        };
        requestAnimationFrame(rundo);
    }
    requestAnimationFrame(rundo);
})();