Last active
March 7, 2021 18:05
-
-
Save mbaez/8922921 to your computer and use it in GitHub Desktop.
This script, force one click, every 10 seconds in Gmail Refresh Pop Account button
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
/** | |
* This script, force one click, every 10 seconds in Gmail Refresh Pop Account button | |
* @author Maximiliano Báez | |
*/ | |
var $popup = window.open("https://mail.google.com/mail/ca/u/0/?shva=1#settings/accounts",'_blank', 'toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,left=10000, top=10000, width=10, height=10, visible=none');function refreshPop(){var $el = $popup.document.getElementsByClassName("rP sA"); if($el.length>0){$el = $el[0]; $el.click(); console.log($el)} setTimeout(refreshPop, 10000)};refreshPop(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment