dafilms.com link extractor

Prints the video direct download link

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

You will need to install an extension such as Tampermonkey to install this script.

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

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

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

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

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

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

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

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

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

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

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

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

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name           dafilms.com link extractor
// @namespace      surrealmoviez.info
// @description    Prints the video direct download link
// @include        http://dafilms.com/film/*
// @include        http://dafilms.com/download/*
// @include        http://dafilms.com/film/*
// @grant          none
// @version        0.2.2
// ==/UserScript==


if ($(".pagination").length > 0) {
    var timer = 0;
    var links = [];
    var currPage = $("body").html();

    function fetchButton() {
        var interval = 2000;
        timer = setInterval(function() {
            BidClick();
        }, interval);
    }

    function fetchDoc() {

        $("#article .article", $(currPage)).each(function(i, v) {
            var link = "http://dafilms.com" + $("h3 > .upper", $(this)).attr("href");
            links.push(link);
        });

        if ($(".disabled.next", $(currPage)).length > 0) {
            clearInterval(timer);
            timer = "";
        } else {
            var next = $(".current.page").next("a").attr("href");

            $.ajax({type: "GET",
                url: "http://dafilms.com/film/" + next,
                async: false,
                success: function(response) {
                    currPage = $("body", $(response)).html();
                },
                error: function(xhr, ajaxOptions, thrownError) {
                    alert(xhr.status);
                    alert(thrownError);
                }
            });
        }
    }


} else {
    var html = $("body").html();
    var linkStart = html.indexOf("http://stream.dafilms.com/video.mp4?");
    var link;
    if (linkStart === -1) {
        link = "Not found. Be sure to click 'Play' first.";
    } else {
        var linkEnd = html.indexOf("'", linkStart);
        link = html.substring(linkStart, linkEnd);
    }

    $(".movie-top-info").append("<p>DOWNLOAD LINK:</p>" + link);
}