YouTube Download

(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.

2014/12/26のページです。最新版はこちら

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         YouTube Download
// @namespace    http://your.homepage/
// @version      2.1
// @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
// ==/UserScript==



// --------------------------RUNS ON KEEPVID TO DOWNLOAD VIDEO--------------------------------------------
$(document).ready ( function(){
	   
	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);
    }
});