Skip to content

Instantly share code, notes, and snippets.

@ad-on-is
Last active April 24, 2024 09:50
Show Gist options
  • Save ad-on-is/7c081d00d0ca7df36af9dbbeb0b85138 to your computer and use it in GitHub Desktop.
Save ad-on-is/7c081d00d0ca7df36af9dbbeb0b85138 to your computer and use it in GitHub Desktop.
Fastmail Hide Compose Button
// ==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