Skip to content

Instantly share code, notes, and snippets.

@TheBarret
Created December 17, 2025 12:25
Show Gist options
  • Select an option

  • Save TheBarret/0b884ffa19c26f5d4383a7b84479ba64 to your computer and use it in GitHub Desktop.

Select an option

Save TheBarret/0b884ffa19c26f5d4383a7b84479ba64 to your computer and use it in GitHub Desktop.
Kills the modal 'NU CONTROLEREN' popup, let's you continue without being harassed.
// ==UserScript==
// @name ABN AMRO – Neutralize KYC Modal (Hard)
// @namespace abnamro.kyc.neutralizer
// @version 2.0.0
// @match https://*.abnamro.nl/*
// @run-at document-start
// @grant none
// ==/UserScript==
(function () {
'use strict';
// 1. Kill dialog.showModal() and dialog.show()
const noop = function () {};
if (window.HTMLDialogElement) {
HTMLDialogElement.prototype.showModal = noop;
HTMLDialogElement.prototype.show = noop;
}
// 2. Cleanup in case it was already rendered
const cleanup = () => {
document.querySelectorAll('dialog').forEach(d => d.remove());
// overlays / scroll locks
document.documentElement.style.overflow = 'auto';
document.body.style.overflow = 'auto';
document.body.style.pointerEvents = 'auto';
// remove inert/aria traps
document.querySelectorAll('[inert]').forEach(e => e.removeAttribute('inert'));
document.querySelectorAll('[aria-hidden="true"]').forEach(e => e.removeAttribute('aria-hidden'));
};
cleanup();
// 3. Observe SPA mutations
new MutationObserver(cleanup).observe(document.documentElement, {
childList: true,
subtree: true
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment