您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Updates Addy email sender labels to use `@` instead of ` at ` for easier viewing
- // ==UserScript==
- // @name Update ProtonMail Addy Email Label
- // @namespace http://tampermonkey.net/
- // @version 2024-03-25 v2
- // @description Updates Addy email sender labels to use `@` instead of ` at ` for easier viewing
- // @author You
- // @match https://mail.proton.me/*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=proton.me
- // @license MIT
- // ==/UserScript==
- (function() {
- function updateEmailText(elArr) {
- // update all email labels to use `@` instead of ` at `
- elArr.filter(el => el.innerText.match(/.+ at .+/g)).forEach(el => el.textContent = el.textContent.replace(' at ', '@'));
- }
- // run every 10 seconds
- setInterval(() => {
- // Email List (left side in Column view)
- updateEmailText([...document.querySelectorAll('[data-testid="message-column:sender-address"]')]);
- // Converstation Header (all converstations within email)
- updateEmailText([...document.getElementsByClassName('message-recipient-item-label')]);
- // Sender Details Popup
- updateEmailText(...document.getElementsByClassName('user-select'));
- }, 10 * 1000);
- })();