Skip Go to

Redirects directly to the final page without "Yes, I confirmed"

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name        Skip Go to
// @namespace   Violentmonkey Scripts
// @match       *://forums.socialmediagirls.com/goto/*
// @icon        https://cdn0.iconfinder.com/data/icons/arrow-2-1/512/826-21-512.png
// @grant       none
// @run-at      document-start
// @version     0.1
// @author      drak4r
// @description Redirects directly to the final page without "Yes, I confirmed"
// @license     GPLv3
// ==/UserScript==

(function() {
    'use strict';

    // Wait for the document to be completely loaded
    window.addEventListener('load', function() {
        // Select the link that contains the specific class
        const link = document.querySelector('a.button--cta.button');

        // Checks if the link exists
        if (link) {
            // Capture the href URL
            const url = link.href;

            // Redirects to the captured URL
            window.location.href = url;
        }
    });
})();