Bypass Confirmations

Bypass all confirmation dialogs

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

Аўтар
Sue Smith MD
Усталяванняў за дзень
1
Усяго ўсталяванняў
7
Рэйтынг
0 0 0
Версія
1.0.0
Створаны
25.12.2025
Абноўлены
25.12.2025
Памер
4.3 КБ
Ліцэнзія
AGPL-3.0
Ужываецца на
Усе сайты

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