🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

POPCAT 自動點擊器

POPCAT 自動點擊

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

You will need to install an extension such as Tampermonkey to install this script.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name         POPCAT 自動點擊器
// @namespace    http://tampermonkey.net/
// @version      2.0.0
// @description  POPCAT 自動點擊
// @author       聖冰如焰
// @match        https://popcat.click/
// @require      http://code.jquery.com/jquery-3.4.1.min.js
// @grant        GM_addStyle
// ==/UserScript==

GM_addStyle(`
    #timeLeftBox {
        top: 100px;
        position: absolute;
        z-index: 10;
        font-size: 50px;
        margin: 10px;
        -webkit-text-stroke-width: 1.5px;
        height: 0;
        flex-grow: 1;
        background-position: bottom;
        background-size: contain;
        background-repeat: no-repeat;
        touch-action: manipulation;
        text-align: center;
        color: #fff;
        -webkit-text-stroke-width: 2px;
        -webkit-text-stroke-color: #000;
        font-weight: 900;
        word-wrap: break-word;
    }
    
    #timeLeftTitle {
        
    }
    
    #timeLeftCount {
        font-size: 40px;
    }
`);

'use strict';
(() => {
    $('body').prepend('<div id="timeLeftBox"><div id="timeLeftTitle">剩餘時間</div><div id="timeLeftCount">30</div></div>');

    //--------------------------------------------//
    let timeLeftCount = $('#timeLeftCount');
    let limitTime = 30000;
    let limitCount = 800;
    let time = +new Date();
    let clickCount = 0;
    let event = new KeyboardEvent('keydown', {
        key: 'g',
        ctrlKey: true
    });
    let rundo = () => {
        let nowTime = +new Date();
        let leftTime = nowTime - time;
        timeLeftCount.text((Math.round((30 - leftTime / 1000) * 1000)/1000).toFixed(3) + 's');
        if (leftTime >= limitTime) {
            time = nowTime;
            clickCount = 0;
        };
        if (++clickCount < limitCount)
            document.dispatchEvent(event);
        requestAnimationFrame(rundo);
    }
    requestAnimationFrame(rundo);
})()