FlashX.tv AutoDownloader

Open a FlashX.tv video and wait for the download to start. The script will do everything while preventing ads/popups

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         FlashX.tv AutoDownloader
// @namespace    FlashX.tv AutoDownloader
// @version      1.0
// @description  Open a FlashX.tv video and wait for the download to start. The script will do everything while preventing ads/popups
// @author       Anon043
// @match        https://www.flashx.tv/*
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==

(function() {
    $(document).ready(function() {
        // Per premere il pulsante dopo 5s senza dover cliccare
        setTimeout(function () {
            if($("#btn_download")) $("#btn_download").click(); // Click() non richiama eventi bindati su OnClick, evitando gli Ads
        }, 4000);
        // Per premere il pulsante "play" senza dover cliccare
        setTimeout(function () {
            if($(".vjs-big-play-button")) $(".vjs-big-play-button").click(); // Click() non richiama eventi bindati su OnClick, evitando gli Ads
            setTimeout(function () {
                if($(".vjs-download-button-control") && $(".vjs-download-button-control").attr("href")) {
                    var Titolo = $("#file_title").text().replace("[Put the lights off - Cinema Modus]", "").trim();
                    window.location.href = $(".vjs-download-button-control").attr("href").replace("normal.mp4", Titolo + ".mp4");
                }
            }, 1000);
        }, 1000);
    });
})();