Nat TaylorBlog, Product Management & Tinkering

Move Gmail Toolbar

Published on . Updated 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
// @version      0.1
// @description  move the gmail message list toolbar to the left near the checkbox and star buttons
// @author
// @match
// @icon
// @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;    }`;


Popular Posts

Post Navigation