No Timer

No Timer on mega.cc

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         No Timer
// @version      0.1
// @author       d59fd0405d44365efe2704a1f5657927ca88a1a
// @description  No Timer on mega.cc
// @match        *://mega2.cc/*
// @license MIT
// @grant        none
// @namespace https://greasyfork.org/users/954286
// ==/UserScript==

(function() {
    'use strict';
    var linkElement = document.querySelector('.btn.btn-cta-primary.clickable-row[data-href*="zip"]');
    if (linkElement) {
        var link = linkElement.getAttribute('data-href');
        var newDiv = document.createElement('div');
        newDiv.style.position = 'fixed';
        newDiv.style.top = '20px';
        newDiv.style.right = '20px';
        newDiv.style.backgroundColor = 'red';
        newDiv.style.color = 'white';
        newDiv.style.borderRadius = '5px';
        newDiv.style.padding = '10px 15px';
        newDiv.style.cursor = 'pointer';
        newDiv.style.zIndex = '1000';
        newDiv.style.textAlign = 'center';
        newDiv.textContent = link;
        newDiv.addEventListener('click', function() {
            window.open(link, '_blank');
        });
        newDiv.addEventListener('mouseover', function() {
            newDiv.style.backgroundColor = '#ff4d4d';
        });
        newDiv.addEventListener('mouseout', function() {
            newDiv.style.backgroundColor = 'red';
        });
        document.body.appendChild(newDiv);
    }
})();