Skip to content

Instantly share code, notes, and snippets.

View 4cyc's full-sized avatar

David Mohr 4cyc

View GitHub Profile
@4cyc
4cyc / refresh-gmail.js
Last active January 4, 2023 09:57
bookmarklet to refresh Gmail POP3 accounts
javascript:
(function () {
const gmailWindow = window;
if(gmailWindow.location.href.indexOf("https://mail.google.com/") === -1){
alert('You have to run the bookmarklet from a Gmail window');
return;
}
gmailWindow.location.assign('https://mail.google.com/mail/u/0/#settings/accounts');
const xpath = "//span[text()='Check mail now']";