ProtonMail - remove forced signature

Removes the forced ProtonMail signature from the 'New message' textboxes

目前為 2020-06-29 提交的版本,檢視 最新版本

// ==UserScript==
// @name        ProtonMail - remove forced signature
// @namespace   darkred
// @version     2020.06.29
// @description Removes the forced ProtonMail signature from the 'New message' textboxes
// @author      darkred
// @license     MIT
// @include     https://mail.protonmail.com/*
// @include     https://beta.protonmail.com/*
// @grant       none
// @require     https://gf.qytechs.cn/scripts/21927-arrive-js/code/arrivejs.js
// @supportURL  https://github.com/darkred/Userscripts/issues
// @icon        https://protonmail.com/images/favicon.ico
// ==/UserScript==

// wait for the formatting toolbar element to be created
document.arrive('.squireToolbar-row-1', function () {
	let editorIframe = document.querySelector('.squireIframe').contentDocument;
	editorIframe.querySelector('.protonmail_signature_block').remove();   // remove the signature element
	editorIframe.querySelector('body > div:last-child').remove();         // remove (the element that contains a) leftover newline (<br>)
});

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址