Greasy Fork

Greasy Fork is available in English.

笔趣阁小说阅读到达底部自动翻页

笔趣阁小说阅读时,当到达底部指定秒数后自动点击下一章

当前为 2022-08-09 提交的版本,查看 最新版本

    // ==UserScript==
    // @name        笔趣阁小说阅读到达底部自动翻页
    // @namespace   [email protected]
    // @include     http://www.cits0871.com/*
    // @license MIT
    // @grant       no
    // @version     1.4
    // @run-at      document-end
    // @description 笔趣阁小说阅读时,当到达底部指定秒数后自动点击下一章
    // @require    http://code.jquery.com/jquery-1.11.0.min.js
    // ==/UserScript==

    (function () {


        xh()

        function xh(){
        	setTimeout(function(){//延迟器

                var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
                var clientHeight = document.documentElement.clientHeight || document.body.clientHeight;
                var scrollHeight = document.documentElement.scrollHeight || document.body.scrollHeight;
        		if(scrollHeight > clientHeight && scrollTop + clientHeight === scrollHeight) {
                    setTimeout(function(){//延迟器
                        document.getElementsByClassName("bottem2")[0].children[3].click();
                    },2000)
        		}

        	xh();
        	},3000)
        }



    })();