Main Area and Open Discussion > General Software Discussion
Gmail complaint, fixed
(1/1)
ayryq:
I have gmail set up to poll my private email address, via POP3. It does this on its own, uncontrollable schedule, based on how often it thinks you might get mail. There is a "refresh" button in the (desktop) webmail interface, which re-polls your POP3 account. There is one quirk, though, which annoys me a lot: the "Refresh" button only appears when no message is selected (I use 2-pane mode; maybe it's different if you don't do this). Once you have a message selected a bunch of new toolbar items appear (delete, spam, move, etc.) and refresh disappears.
Here's the really annoying part. The only way to return to a no-message-selected state is with the keyboard hotkey "U" — there is no on-screen clickable button to do this. And the only way to hit that "refresh" button is with the mouse—there is no hotkey, assignable or not, to invoke that process. So the procedure involves both a right-hand keypress and a mouse action.
I was looking into it and it turns out the refresh button is only hidden with CSS - its div gets a "display:none" when a message is loaded. So here's how you fix it, recorded here both in case someone else finds it handy, and in the event I need to set this up on a new browser.
Option one: "Stylish" is a firefox addon which lets you apply CSS to a page. Create a new rule, applying to URLs starting with "https://mail.google.com", as follows:
--- ---div.G-Ni:nth-child(5) {
display:inline-flex !important
}
Option two: Greasemonkey/Tampermonkey is a firefox/chrome addon which lets you apply javascript to a page. Create a new userscript, as follows:
--- ---// ==UserScript==
// @name Gmail refresh
// @description
// @author
// @homepage
// @include https://mail.google.com/*
// @version
// ==/UserScript==
(function() {var css = ["div.G-Ni:nth-child(5) {display:inline-flex !important}"].join("\n");
var node = document.createElement('style');
node.type = 'text/css';
node.appendChild(document.createTextNode(css));
var heads = document.getElementsByTagName('head');
heads[0].appendChild(node);
})();
f0dder:
Option one: "Stylish" is a firefox addon which lets you apply CSS to a page.-ayryq (June 11, 2019, 12:56 PM)
--- End quote ---
Have they stopped adding malware to that addon?
ayryq:
Maybe, not sure. I'm not using it. I was thinking most firefox users would have one or the other of those installed. Apparently "Stylus" does the same thing and is Free. https://addons.mozilla.org/en-US/firefox/addon/styl-us
IainB:
@ayryq: Thanks for that useful tip. :Thmbsup:
Navigation
[0] Message Index
Go to full version