Last active
March 31, 2020 11:51
-
-
Save ThomasOrlita/f6be2564e439b867e57e2254d40196e2 to your computer and use it in GitHub Desktop.
Gmail auto check mail from POP3 every 5 min
This file contains hidden or 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
setInterval(() => { | |
location.href = 'https://mail.google.com/mail/u/0/#settings/accounts'; | |
const elements = [...document.querySelectorAll('span')].filter(el => el.textContent.includes('Check mail now')); | |
// const elements = document.querySelectorAll('.rP.sA'); | |
elements.forEach(el => el.click()); | |
}, 5 * 60 * 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment