Skip Propinas Warning

Skips the pagamento de propinas warning. Made on 11/24/2024, 1:02:15 AM

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        Skip Propinas Warning
// @namespace   Fenix
// @description Skips the pagamento de propinas warning. Made on 11/24/2024, 1:02:15 AM
// @author      afsc19
// @version     1.0
// @match       https://fenix.tecnico.ulisboa.pt/login.do
// @grant       none
// @license     GNU GPLv3
// ==/UserScript==

(function () {
    'use strict';

    // Wait for the page to fully load, I think fenix doesn't need this tho.
    window.addEventListener('load', function () {
        // Prosseguir button has tabindex=1
        const button = document.querySelector('a.btn.btn-default[tabindex="1"]'); // Update the selector if needed
        if (button) {
            button.click(); // Simulate the button click
            console.log("Skipping message.");
        } else {
            console.log("'Prosseguir' button not found.");
        }
    });
})();