// ==UserScript== // @name ProtonMail - remove forced signature // @namespace darkred // @version 2023.6.1 // @description Removes the forced ProtonMail signature from the 'New message' textboxes // @author darkred // @license MIT // @include https://mail.protonmail.com/* // @include https://mail.proton.me/* // @include https://protonirockerxow.onion/* // @include https://protonmailrmez3lotccipshtkleegetolb73fuirgj7r4o4vfu7ozyd.onion/* // @grant none // @require https://greasyfork.org/scripts/21927-arrive-js/code/arrivejs.js // @supportURL https://github.com/darkred/Userscripts/issues // @icon https://proton.me/favicons/favicon.ico // @downloadURL none // ==/UserScript== const elementToWatch = 'iframe[title="Email composer"]'; document.arrive(elementToWatch, function () { let iframe = this.contentDocument; // refers to the newly created element const config = { childList: true, subtree: true }; const callback = function(mutationList, observer) { mutationList.forEach( (mutation) => { mutation.addedNodes.forEach( (node) => { const refNode = 'protonmail_signature_block'; if (node.className === refNode) { // DOM STRUCTURE: // // The 2 previous element siblings of the main signature element, '.protonmail_signature_block', both contain a