您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Disables automatic video playback on the YouTube homepage and displays only the video thumbnails.
// ==UserScript== // @name Disable YouTube Autoplay on Homepage // @namespace http://yourdomainhere/ // @version 1 // @description Disables automatic video playback on the YouTube homepage and displays only the video thumbnails. // @author Agnar // @match https://www.youtube.com/ // @grant none // @license CC-BY-NC // ==/UserScript== (function() { 'use strict'; // Find all video thumbnails on the homepage var videos = document.querySelectorAll('#contents ytd-rich-item-renderer'); // Loop through each video and remove the autoplay attribute videos.forEach(function(video) { video.removeAttribute('autoplay'); }); // Disable the autoplay of the first video in the recommended videos section var recommendedVideo = document.querySelector('#contents #items ytd-compact-autoplay-renderer video'); if (recommendedVideo) { recommendedVideo.removeAttribute('autoplay'); } // Disable the autoplay of the first video in the up next section var upNextVideo = document.querySelector('#secondary #items ytd-compact-autoplay-renderer video'); if (upNextVideo) { upNextVideo.removeAttribute('autoplay'); } // Remove all video player elements on the page var players = document.querySelectorAll('ytd-player'); players.forEach(function(player) { player.remove(); }); // Remove all video overlay elements on the page var overlays = document.querySelectorAll('.ytd-thumbnail-overlay-playback-status-renderer'); overlays.forEach(function(overlay) { overlay.remove(); }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址