Greasy Fork镜像 还支持 简体中文。

Youtube 預讀取全部播放清單

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

// ==UserScript==
// @name         Youtube 預讀取全部播放清單
// @namespace    http://tampermonkey.net/
// @version      1.6.1
// @description  播放清單數量超過100個,可預先讀取全部影片
// @author       Shanlan(o3-mini)
// @match        https://www.youtube.com/playlist?list=*
// @grant        none
// @run-at       document-end
// @license      MIT
// ==/UserScript==

(function(){
let u="";
setInterval(()=>{
  if(u!==location.href){
    u=location.href;
    if(u.includes("/playlist?list=")){
      document.getElementById("exportTabTextList")?.remove();
      let bi=setInterval(()=>{
        let t=document.querySelectorAll("div.page-header-view-model-wiz__page-header-content,div.thumbnail-and-metadata-wrapper.style-scope.ytd-playlist-header-renderer");
        if(t.length&&!document.getElementById("exportTabTextList")){
          let btn=document.createElement("button");
          btn.id="exportTabTextList";
          btn.textContent="清單全部讀取";
          btn.style="font-family:Roboto,Arial,sans-serif;font-size:13px;margin-top:10px;";
          t[t.length-1].parentNode.insertBefore(btn,t[t.length-1].nextSibling);
          btn.onclick=()=>{
            let si=setInterval(()=>{
              if(document.querySelectorAll("ytd-continuation-item-renderer.ytd-playlist-video-list-renderer").length)
                window.scrollTo(0,document.documentElement.scrollHeight);
              else {
                window.scrollTo(0,document.documentElement.scrollHeight);
                setTimeout(()=>{window.scrollTo(0,0);},300);
                clearInterval(si);
              }
            },100);
          };
          clearInterval(bi);
        }
      },100);
    }
  }
},100);
})();

QingJ © 2025

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