GMail POP3 Quick Checker

By Tim Smart Last update Oct 26, 2009 — Installed 5,660 times.

Bug fixes + improvements

in
Subscribe to Bug fixes + improvements 20 posts, 7 voices



Floris User
FirefoxX11

I've found the following bug in your Gmail POP3 Quick Checker and have created a new version of it.

The Inbox / Starred / Sent Mail pages on which the link 'Refresh POP3 Accounts' appears don't always have an URL like this: http://mail.google.com/mail/#inbox, http://mail.google.com/mail/#starred, etc.

These URLs http://mail.google.com/mail/?zx=16wi4tqvnrvcu&s..., http://mail.google.com/mail/?zx=16wi4tqvnrvcu&s..., or http://mail.google.com/mail/?shva=1#inbox or http://mail.google.com/mail/?ui=2#inbox are for example also possible, refreshing a POP3 account from a comparable URL fails.

It should automatically go to the Accounts & Information page and click the refresh links, but it loads GMail again and only navigates to the Gmail Settings > General page.

I have simplified the script too, a few things were done quite complicated... I have tested everything possible and everything still works.

It seems like it's faster now, I might be wrong though...

My version can be downloaded here: http://dl.getdropbox.com/u/1861906/GmailQuickPo...
But you also can try Tim's version (there's not yet discovered a difference in how it works) -> navigate to the about page.

CONTACT

Please react on this thread.

SCRIPT
Right click on the URL ( http://dl.getdropbox.com/u/1861906/GmailQuickPo... ) > View User Script Source

 
max6166 User
FirefoxWindows

I have been experiencing the bug where Gmail reloads and goes to the Settings page quite a bit. I am glad if it is fixed.

 
Tim Smart Script's Author
FirefoxWindows

I have updated to fix the navigation bug, but used different code however.

 
Floris User
FirefoxX11

Well, you know more Javascript than I... I'm glad I've learned something :) ... Didn't know of top.location.hash ....

Although my script works the same way, yours is easier to read ...

 
max6166 User
FirefoxWindows

Works great now! CPU usage is fixed too. Thanks, Tim! Great work!

 
Floris User
FirefoxX11

One of the reasons why I use Gmail :)

I wanted to forward my previous Hotmail account to Gmail (for more than 30 days), hence I needed the Mail Fetcher.

Despite I really like Gmail, I nearly gave up (because the mail fetcher was slow ... and not easy to refresh) ...

After some searching I found this great tool.

That's not all: now I know Userscripts.org and Greasemonkey too :)

 
gbonato User
FirefoxWindows

Hey! The scripts works perfectly. I got only one issue: everytime I open Firefox, it asks me to update to a new version of the script. How do I disable that? It doesn't happen to other scripts I have here in my Greasemonkey.

 
Floris User
FirefoxX11

@gbonato:

I have created a version of Tim Smart's newest script, which doesn't update automatically;
(I removed one line)

http://dl.getdropbox.com/u/1861906/GmailQuickPo...

Is this the right solution?

 
Krzysiek Scriptwright
FirefoxWindows

not working for me, where is the button?

 
Tim Smart Script's Author
FirefoxWindows

Krzysiek wrote:
not working for me, where is the button?

The link appears next to 'Refresh' in the Inbox etc.

If you still can't find it, let me know what browser you are using, and what language you use GMail in.

 
Krzysiek Scriptwright
FirefoxWindows

When I change gmail language to English I can see the link and it works, but when i have Gmail in Polish the "Refresh POP3 Accounts" doesn't show up.

 
hsrstud User
FirefoxWindows

Stopped working for me. I'm using Firefox and English for GMail.

 
hsrstud User
FirefoxWindows

How strange, if I refresh the page, the button shows up. However, for some reason, it doesn't show when I first load Gmail.

 
Tim Smart Script's Author
FirefoxWindows

Krzysiek wrote:
When I change gmail language to English I can see the link and it works, but when i have Gmail in Polish the "Refresh POP3 Accounts" doesn't show up.

Yeah it only works for English GMail at present. You will have to edit the script to make it work.

 
Floris User
FirefoxX11

This version is multilingual (works in every language): - down for maintenance -

To test it I have navigated to every page with it in different languages...

(PS. I just removed one line in Tim's script: ".//div[contains(.,'Refresh') and")

 
Tim Smart Script's Author
FirefoxX11

Floris wrote:
(PS. I just removed one line in Tim's script: ".//div[contains(.,'Refresh') and")

Did it correctly check the POP3 accounts though? As it still has this line in it:
var links = this.viewElement.ownerDocument.evaluate( ".//span[contains(.,'Check mail now')]", this.viewElement, null, 4, null );
Which uses a English string.

 
Floris User
FirefoxX11

That was an experiment and old version, I didn't have a lot of time to test this script ... Thanks for reporting that bug! Although I already encountered it and I was already experimenting with new ways to fix it :)

 
oroboros74 User
FirefoxWindows

I'm still getting a quick flash of the Settings page when I refresh. Is this just my problem or is there a work around?

 
Floris User
FirefoxX11

That's how the scripts works: it opens your settings page and clicks all the "Check mail now" (or whatever it in your language is) buttons.

 
Tim Smart Script's Author
FirefoxX11

oroboros74 wrote:
I'm still getting a quick flash of the Settings page when I refresh. Is this just my problem or is there a work around?

Google hasn't offered a direct API to perform particular actions, so the only option I has was to automate mouse clicks.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel