获取youtube视频和字幕的下载链接
当前为
// ==UserScript==
// @name Download Youtube videos and subtitles
// @namespace http://www.findspace.name
// @version 0.2.1
// @description 获取youtube视频和字幕的下载链接
// @include http://www.youtube.com/*
// @include https://www.youtube.com/*
// @exclude http://www.youtube.com/embed/*
// @exclude https://www.youtube.com/embed/*
// @match http://www.youtube.com/*
// @match https://www.youtube.com/*
// @match http://s.ytimg.com/yts/jsbin/html5player*
// @match https://s.ytimg.com/yts/jsbin/html5player*
// @match http://manifest.googlevideo.com/*
// @match https://manifest.googlevideo.com/*
// @match http://*.googlevideo.com/videoplayback*
// @match https://*.googlevideo.com/videoplayback*
// @match http://*.youtube.com/videoplayback*
// @match https://*.youtube.com/videoplayback*
// @copyright 2017+, Find
// @author FindHao
// ==/UserScript==
var download=document.createElement("span");
download.setAttribute("calss", "yt-uix-button-subscription-container");
download.setAttribute("id", "findspace-downyoutube");
download.innerHTML='<button class="yt-uix-button yt-uix-button-size-default yt-uix-button-opacity " ><span class="yt-uix-button-content">获取下载链接(Get DownLoad Links)</span></button>';
download.addEventListener("click", function() {
var id = Math.random();
document.write('<form id="post' + id + '" name="post'+ id +'" action="http://youtube.findhao.net/" method="post">');
document.write('<input type="hidden" name="url" value="'+window.location.href+'" /></form>');
document.getElementById('post' + id).submit();
});
var beforeNode=document.getElementById("watch-like-dislike-buttons");
document.getElementById("watch8-secondary-actions").insertBefore(download,beforeNode);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址