megaupSkipADBCheck

Skip ADB Check,auto download.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         megaupSkipADBCheck
// @namespace    http://tampermonkey.net/
// @version      1.4
// @description  Skip ADB Check,auto download.
// @author       HaoaW
// @match        *://download.megaup.net/*
// @match        *://megaup.net/*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';
    if ("megaup.net" == location.hostname) {
        seconds = 0;
        display();
        let dlHref = document.querySelector('.download-timer a.btn.btn-default').href;
        if (dlHref) {
            //debugger;
            location.href = dlHref;
        }
    }
    else if ("download.megaup.net" == location.hostname) {
        let dlHref = document.querySelector('#afterdownload div a').href
        if (dlHref) {
            //debugger;
            location.href = dlHref;
            document.querySelector('#afterdownload').className = '';
        }
    }
})();