Last active
April 24, 2024 09:50
-
-
Save ad-on-is/7c081d00d0ca7df36af9dbbeb0b85138 to your computer and use it in GitHub Desktop.
Fastmail Hide Compose Button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Fastmail Hide Compose Button | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-04-24 | |
// @description Hides the compose button if not within Inbox/<Label> | |
// @author ad-on-is | |
// @match *://*.app.fastmail.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=fastmail.com | |
// @grant GM_addStyle | |
// ==/UserScript== | |
// Usage: | |
// If you use different labels for separate accounts, nest them under the Inbox-label. | |
// Each time you want to compose a new e-mail, you have to navigate to that label first, to compose new emails. | |
GM_addStyle('a.s-new-message:not([href*="/Inbox."]) { pointer-events: none; cursor: default; opacity: 0.2; }'); | |
(function() { | |
'use strict'; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment