您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
YouTube Shorts で一定回数以上スクロールできなくする User Script
// ==UserScript== // @name YouTube Shorts Limiter // @description YouTube Shorts で一定回数以上スクロールできなくする User Script // @author TwoSquirrels // @license MIT // @namespace https://github.com/TwoSquirrels // @version 0.1.1 // @match https://*.youtube.com/* // ==/UserScript== // YouTube Shorts で一度に観れる動画の数の上限 const YT_SHORTS_LIMIT = 1; setInterval(() => { while (true) { const lastVideo = [...document.getElementsByClassName("reel-video-in-sequence")].pop(); if (!(lastVideo && Number(lastVideo.id) >= YT_SHORTS_LIMIT)) break; lastVideo.remove(); } }, 1000);