您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
On page load, auto-scroll to the bottom of a scrolling page of forum posts, then jump back up a little so you can see the final post.
// ==UserScript== // @name Forum Jumper - automatically jump down the last post on a traditional forum page. // @namespace dhaden // @description On page load, auto-scroll to the bottom of a scrolling page of forum posts, then jump back up a little so you can see the final post. // @match https://www.sevenforums.com/general-discussion/* // @grant none // @version 1.0 // @author dhaden // @license MIT // ==/UserScript== // ! Change the @match URL to your chosen old-school forum. // Set up a timeout window.setTimeout( () => { // Inside the timeout, do the cool stuff! Have the Web page jump down to your chosen DIV, as identified by the #keyword the DIV inside it somewhere. document.querySelector('#below_postlist').scrollIntoView(); // Because we've overshot the mark a little by doing this, we then have the page scroll back up by 500 pixels. window.scrollBy(0, -500); // The one second timeout setting lives down here - 1000 milliseconds = 1 second. This gives the forum page time to load. }, 1000);