Last active
September 24, 2023 01:28
-
-
Save Ayce45/4e8bbf6c1c3e3b07d3c5af891ad4a7bb to your computer and use it in GitHub Desktop.
[Tampermonkey] Gmail POP3 Auto Refresh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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