您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Бесконечный контент в темах
当前为
// ==UserScript== // @name ThreadScroll // @namespace https://gf.qytechs.cn/ru/users/1142494-llimonix // @version 0.2 // @description Бесконечный контент в темах // @author llimonix // @license MIT // @match http*://zelenka.guru/threads/* // @icon https://i.imgur.com/ZiddNv0.png // @grant none // ==/UserScript== (function($) { let currentPageURL = $("a[rel='start']").attr("href"); let pageC = parseInt($(".currentPage").text()); let pagelast = parseInt($("nav > a:last").text()); let currentURL = window.location.href; function checkURL() { let currentURLnew = window.location.href; if (currentURLnew != currentURL) { currentURL = currentURLnew; pageC = parseInt($(".currentPage").text()); pagelast = parseInt($("nav > a:last").text()); } requestAnimationFrame(checkURL); }; checkURL(); function doSomethingWhenScrolledToBottom() { pageC += 1; $('.messageList').append(`<div class="Spinner spinner small" style="background: center center rgb(39, 39, 39); padding: 0px 15px; border-style: none; border-radius: 10px; line-height: 34px; vertical-align: top; height: 40px; width: 200px; display: block; margin: 15px auto 15px;"><div class="bounce1 bounce"></div><div class="bounce2 bounce"></div><div class="bounce3 bounce"></div></div>`); XenForo.ajax(`https://zelenka.guru/${currentPageURL}page-${pageC}`, {}).then(function(data) { let contentThread = data.templateHtml; let parser = new DOMParser(); contentThread = parser.parseFromString(contentThread, 'text/html'); contentThread = $(contentThread).find('li.message'); $(".Spinner").remove(); $('.messageList').append(contentThread).xfActivate(); }); } $(window).scroll(function() { var documentHeight = $(document).height(); var scrollPosition = $(window).scrollTop(); var windowHeight = $(window).height(); if (scrollPosition + windowHeight >= documentHeight) { if (pageC < pagelast) { doSomethingWhenScrolledToBottom(); } } }); })(jQuery);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址