Bypass Confirmations

Bypass all confirmation dialogs

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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

Autor
Sue Smith MD
Installationen heute
1
Installationen gesamt
7
Bewertungen
0 0 0
Version
1.0.0
Erstellt am
25.12.2025
Letzte Aktualisierung
25.12.2025
Größe
4,3 KB
Lizenz
AGPL-3.0
Wird angewandt auf
Alle Seiten

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