您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically scrolls to the next YouTube short when the current one finishes.
// ==UserScript== // @name Auto Scroll YouTube Shorts // @namespace https://github.com/YourGitHubUsername/YouTubeShortsAutoScroll // @version 1.0 // @description Automatically scrolls to the next YouTube short when the current one finishes. // @author Navist (AI Generated) // @match https://www.youtube.com/shorts/* // @grant none // @license MIT // @homepageURL https://github.com/YourGitHubUsername/YouTubeShortsAutoScroll // @supportURL https://github.com/YourGitHubUsername/YouTubeShortsAutoScroll/issues // ==/UserScript== (function() { 'use strict'; function moveToNextShort() { // Target the "Next" button by its class and aria-label const nextButton = document.querySelector( 'button.yt-spec-button-shape-next[aria-label="Next video"]' ); if (nextButton) { nextButton.click(); // Simulate a click on the "Next" button console.log("Moved to next video."); } else { console.log("Next button not found!"); } } function checkVideoProgress() { const video = document.querySelector('video'); if (video) { // Check if the video is about to finish (within 0.5 seconds of the duration) if (video.duration - video.currentTime <= 0.5) { moveToNextShort(); } } } // Run the check every 500ms setInterval(checkVideoProgress, 500); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址