您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
expands biggest element when user reaches bottom of page.
当前为
// ==UserScript== // @name Infinity Scroll // @namespace - // @version 1.0.0 // @description expands biggest element when user reaches bottom of page. // @author NotYou // @include * // @run-at document-idle // @license GPL-3.0-or-later // @grant none // ==/UserScript== (function() { let longestDiv = Array.from(document.querySelectorAll(':not(body) > div')).sort((a, e) => e.offsetHeight - a.offsetHeight)[0] window.addEventListener('scroll', e => { if((window.innerHeight + window.scrollY) >= document.body.offsetHeight - 100) { longestDiv.style.height = longestDiv.offsetHeight + 100 + 'px' } }) })()