Skip to content

Instantly share code, notes, and snippets.

@Ayce45
Last active September 24, 2023 01:28
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Ayce45/4e8bbf6c1c3e3b07d3c5af891ad4a7bb to your computer and use it in GitHub Desktop.
Save Ayce45/4e8bbf6c1c3e3b07d3c5af891ad4a7bb to your computer and use it in GitHub Desktop.
[Tampermonkey] Gmail POP3 Auto Refresh
// ==UserScript==
// @name Gmail POP3 Auto Refresh
// @namespace https://evanjuge.fr
// @version 1.4
// @description Refresh unlimited POP3 email accounts of Gmail with a frequency of one minute for free.
// @author Ayce45
// @match https://mail.google.com/mail/u/0/
// @icon https://github.com/Ayce45/gmail-pop3-auto-refresh/raw/master/icon.png
// @grant none
// ==/UserScript==
(function () {
"use strict";
if ("#settings/accounts" === location.hash) {
var refreshPop = function () {
var e = document.getElementsByClassName("rP sA");
for (let o of e) o.click();
console.log('[Gmail POP3 Auto Refresh] Refresh Pop')
}, reloadPage = function () {
location.reload();
};
setInterval(refreshPop, 3e4);
setTimeout(reloadPage, 36e5);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment