Bypass Confirmations

Bypass all confirmation dialogs

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!)

Autore
Sue Smith MD
Installazioni giornaliere
1
Installazioni totali
7
Valutazione
0 0 0
Versione
1.0.0
Creato il
25/12/2025
Aggiornato il
25/12/2025
Dimensione
4,3 KB
Licenza
AGPL-3.0
Applica a
Tutti i siti

Remove All Confirmations

Bypass all confirmation dialogs on web pages.

What It Does

Removes these annoying confirmations:

  • window.confirm() dialogs
  • "Leave site?" warnings (beforeunload)
  • Rails-style confirmation attributes (data-confirm, etc.)
  • Inline onclick="confirm(...)" handlers
  • Form submit confirmations

How It Works

  1. Overrides browser APIs - Makes window.confirm() always return true
  2. Blocks beforeunload events - Prevents "leave page" warnings
  3. Cleans DOM - Removes confirmation attributes from elements
  4. Monitors changes - Watches for new confirmations being added

Installation

  1. Install a userscript manager (Violentmonkey, Tampermonkey, etc.)
  2. Click the script file to install
  3. Done - runs automatically on all sites

Performance

  • Skips iframes (each gets its own instance)
  • Debounced DOM monitoring (50ms delay)

Technical Details

API Overrides:

  • window.confirm → always true
  • BeforeUnloadEvent.returnValue → read-only, always empty
  • window.onbeforeunload → read-only, always null
  • EventTarget.addEventListener → ignores beforeunload listeners

DOM Cleanup:

  • Removes data-confirm, data-action-confirm, etc.
  • Removes inline handlers containing confirm()
  • Removes form handlers containing confirm()

Monitoring:

  • MutationObserver watches for new elements and attribute changes
  • Automatically cleans confirmations as they're added