您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Copy Video Links from Youtube Watch Later for later downloading
// ==UserScript== // @name Copy Video Links from Youtube Watch Later // @namespace ktaragorn // @description Copy Video Links from Youtube Watch Later for later downloading // @include https://www.youtube.com/playlist?list=WL // @version 2 // @grant none // ==/UserScript== function getUrls(){ return JSON.stringify(Array.prototype.slice.call(document.querySelectorAll("a.ytd-playlist-video-renderer")).map(function(a){return a.href.replace(/&list=.*/g,'').replace(/&index=.*/g,'')})) } window.linkClick= function(){ if(confirm("Have you revealed all videos(click show more at the bottom)??")){ prompt("Copy to clipboard", getUrls()); alert("Now copy these videos to another playlist, delete from WL, delete the other playlist") } } function createLink(){ document.getElementById("title").innerHTML += '<a href="javascript:window.linkClick();">'+"Click to get all urls"+'</a>' } createLink();