Auto Continue - oto.otowp.com

Waits for Continue button and clicks it automatically

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

You will need to install an extension such as Tampermonkey to install this 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         Auto Continue - oto.otowp.com
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Waits for Continue button and clicks it automatically
// @match        https://oto.otowp.com/*
// @match        https://carrnissan.com/*
// @license   MIT
// @run-at       document-end
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    console.log("Auto-Continue script running...");

    const waitForContinue = setInterval(() => {
        // Try to find buttons that say Continue
        const btn = [...document.querySelectorAll("button, a")]
            .find(el => el.innerText.trim().toLowerCase() === "continue");

        if (btn) {
            console.log("Continue button found, clicking...");
            btn.click();
            clearInterval(waitForContinue);
        }
    }, 500);
})();