Auto Click "Show More..." Button

Automatically presses the button to show games

目前為 2023-04-19 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Auto Click "Show More..." Button
// @version      1.0
// @description  Automatically presses the button to show games
// @namespace    Goga)
// @match        https://online-fix.me/*
// @run-at       document-end
// @author       Gleb237237
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    var showMoreButton = document.querySelector('.btn.btn-small.btn-success[onclick="ajax_show_more(); return false;"]');
    var clicked = false;

    function clickShowMoreButton() {
        showMoreButton.click();
        clicked = true;
        setTimeout(function() {
            clicked = false;
        }, 2000);
    }

    function scrollHandler() {
        if (!clicked && (window.innerHeight + window.scrollY) >= (document.body.offsetHeight - 500)) {
            clickShowMoreButton();
        }
    }

    window.addEventListener('scroll', scrollHandler);
})();

QingJ © 2025

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