topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 12, 2024, 8:31 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Gmail complaint, fixed  (Read 5224 times)

ayryq

  • Supporting Member
  • Joined in 2009
  • **
  • Points: 101
  • Posts: 290
    • View Profile
    • Donate to Member
Gmail complaint, fixed
« on: June 11, 2019, 12:56 PM »
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

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Gmail complaint, fixed
« Reply #1 on: June 12, 2019, 11:11 AM »
Option one: "Stylish" is a firefox addon which lets you apply CSS to a page.
Have they stopped adding malware to that addon?
- carpe noctem

ayryq

  • Supporting Member
  • Joined in 2009
  • **
  • Points: 101
  • Posts: 290
    • View Profile
    • Donate to Member
Re: Gmail complaint, fixed
« Reply #2 on: June 12, 2019, 12:01 PM »
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.mozil...irefox/addon/styl-us

IainB

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,544
  • @Slartibartfarst
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Gmail complaint, fixed
« Reply #3 on: June 15, 2019, 12:00 AM »
@ayryq: Thanks for that useful tip. :Thmbsup: