Nat TaylorBlog, AI, Product Management & Tinkering

Move Gmail Toolbar

Published on .

The location of the on-hover buttons for archive, trash, mark-as-read and snooze in GMail annoys me because its allllllllllllllllllllllllllllllllllll the way across the screen from the checkbox, star and important buttons. I wrote a userscript to move it to the left where it should be.

Screenshot of the moved GMail toolbar

It just appends a stylesheet. Miraculously these selectors seem to be stable for years!

// ==UserScript==
// @name         Move Gmail Toolbar
// @namespace    https://nattaylor.com
// @version      0.1
// @description  move the gmail message list toolbar to the left near the checkbox and star buttons
// @author       nattaylor@gmail.com
// @match        https://mail.google.com/mail/u/0/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    window.addEventListener("load", (event) => {
        var style = document.createElement("style");
        style.textContent = `.zA>.xY.bq4 { left: 200px;    position: absolute; }
.zA>.yX { flex-basis: 220px;     max-width: 220px;    }`;
        document.body.appendChild(style);
    });

})();

Post Navigation

«
»