您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This Tampermonkey script automatically clicks the "Show More..." button on the website https://online-fix.me/.
当前为
- // ==UserScript==
- // @name Auto Click "Show More..." Button
- // @version 1.0
- // @description This Tampermonkey script automatically clicks the "Show More..." button on the website https://online-fix.me/.
- // @namespace Goga)
- // @match https://online-fix.me/*
- // @run-at document-end
- // @author Role_Play
- // @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);
- })();