megaupSkipADBCheck

Skip ADB Check,auto download.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==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 = '';
        }
    }
})();