Greasy Fork镜像 还支持 简体中文。

移除 daybuy.tw 自動翻頁功能

當滾動到頁面底部時,禁用自動跳轉到下一頁的功能。

// ==UserScript==
// @name         移除 daybuy.tw 自動翻頁功能
// @name:zh-TW   移除 daybuy.tw 自動翻頁功能
// @name:en      Disable Daybuy.tw Auto Next Page
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  當滾動到頁面底部時,禁用自動跳轉到下一頁的功能。
// @description:zh-TW 當滾動到頁面底部時,禁用自動跳轉到下一頁的功能。
// @description:en Disable the function that automatically jumps to the next page when scrolling to the bottom of the page.
// @author       abc0922001
// @license      MIT
// @match        https://*.daybuy.tw/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    console.log('Daybuy auto-pager disabler loaded.');

    // 在 "capture" 階段攔截 scroll 事件,並立即停止其傳播
    // 這可以防止頁面自身的 scroll 事件監聽器 (用於自動翻頁) 被觸發
    // The 'true' argument ensures this listener runs in the capture phase.
    window.addEventListener('scroll', function(e) {
        e.stopImmediatePropagation();
        // console.log('Scroll event stopped.'); // 用於除錯,可以取消註解來確認是否運作
    }, true);
})();

QingJ © 2025

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