您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
(Requires Java!!!) On youtube press F2 to download the current video. If Java message pops up check the box to make the message not pop up next time.
当前为
// ==UserScript== // @name YouTube Download // @namespace http://your.homepage/ // @version 2.3 // @description (Requires Java!!!) On youtube press F2 to download the current video. If Java message pops up check the box to make the message not pop up next time. // @author Henry Harris // @match https://www.youtube.com/* // @match http://keepvid.com/* // @grant none // @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js // @run-at document-end // ==/UserScript== $(document).ready ( function(){ // -----------------------Runs on YOUTUBE-------------------------------------------------------------- if(window.location.href.indexOf("you") > -1) { if ($('#section-list').length > 0) { alert('Press F2 while watching a video to download it.'); } } // --------------------------RUNS ON KEEPVID TO DOWNLOAD VIDEO-------------------------------------------- if(window.location.href.indexOf("keep") > -1) { setInterval(function(){ if ($('#info').length > 0) { var divs = document.getElementsByTagName("a"); for (var i = divs.length; i;) { var div = divs[--i]; if (div.download.indexOf("Max") > -1) { div.click(); } } setTimeout(function(){ window.close(); }, 1000); } }, 2000); } }); // -----------------------Runs on YOUTUBE-------------------------------------------------------------- $(document).keydown(function (e) { if (e.keyCode == 113) { //window.open("http://keepvid.com/?url=" + document.URL) var a = document.createElement("a"); a.href = "http://keepvid.com/?url=" + document.URL; var evt = document.createEvent("MouseEvents"); evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, true, false, false, false, 0, null); a.dispatchEvent(evt); } });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址