Youtube預讀取全部播放清單內容

播放清單數量超過100個,可預先讀取全部影片

当前为 2025-07-15 提交的版本,查看 最新版本

// ==UserScript==
// @name         Youtube預讀取全部播放清單內容
// @namespace    http://tampermonkey.net/
// @version      1.5
// @description  播放清單數量超過100個,可預先讀取全部影片
// @author       Shanlan(o3-mini)
// @match        https://www.youtube.com/playlist?list=*
// @require      https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @grant        none
// @run-at       document-end
// @license      MIT
// ==/UserScript==
/* global $ */
(function(){
"use strict";
let u="";
setInterval(()=>{
  if(u!==location.href){
    u=location.href;
    if(u.includes("/playlist?list=")){
      $("#exportTabTextList").remove();
      let bi=setInterval(()=>{
        let t=$("div.page-header-view-model-wiz__page-header-content,div.thumbnail-and-metadata-wrapper.style-scope.ytd-playlist-header-renderer");
        if(!$("#exportTabTextList").length && t.length){
          t.last().after("<button id='exportTabTextList' style='font-family:Roboto,Arial,sans-serif;font-size:13px;margin-top:10px;'>清單全部讀取</button>");
          $("#exportTabTextList").click(()=>{
            let si=setInterval(()=>{
              $("ytd-continuation-item-renderer.ytd-playlist-video-list-renderer").length
                ? $(document).scrollTop($(document).height())
                : (scrollTo(0,0), clearInterval(si));
            },100);
          });
          clearInterval(bi);
        }
      },100);
    }
  }
},100);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址