Skip Propinas Warning

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

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        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.");
        }
    });
})();