Auto Remove Try not to rush!

Automatically removes the blocker div with countdown using MutationObserver.

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         Auto Remove Try not to rush!
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  Automatically removes the blocker div with countdown using MutationObserver.
// @author       Your Name
// @match        https://www.vocabulary.com/lists/*/practice*
// @match        https://www.vocabulary.com/vocabtrainer/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    // Function to remove the blocker if it exists
    function removeBlocker() {
        const blocker = document.querySelector('.blocker');
        if (blocker) {
            blocker.remove();
            console.log('Blocker element removed.');
        }
    }

    // Create a MutationObserver to watch for changes in the DOM
    const observer = new MutationObserver(() => {
        removeBlocker(); // Check for and remove the blocker on DOM changes
    });

    // Start observing the document body for added/removed child nodes
    observer.observe(document.body, { childList: true, subtree: true });

    // Initial check in case the blocker is already present
    removeBlocker();
})();