asteriksme / No google credential picker

// ==UserScript==
// @name         No google credential picker
// @namespace    http://tampermonkey.net/
// @version      2024-09-06
// @description  Remove google credential picker on websites
// @author       You
// @match        https://*/*
// @grant        none
// @license      MIT
// @updateURL    https://openuserjs.org/meta/asteriksme/No_google_credential_picker.meta.js
// @downloadURL  https://openuserjs.org/install/asteriksme/No_google_credential_picker.user.js
// ==/UserScript==

(function() {
    'use strict';

    (new MutationObserver(check)).observe(document, {childList: true, subtree: true});

    function check(changes, observer) {
        if (document.querySelector('iframe[src^="https://accounts.google.com"]') ) {
            observer.disconnect();
            document.querySelectorAll('#credentials-picker-container, #credential_picker_container').forEach((x) => x.remove());
        }
    }
})();