Skip to content

Instantly share code, notes, and snippets.

@mbaez
Last active March 7, 2021 18:05
Show Gist options
  • Save mbaez/8922921 to your computer and use it in GitHub Desktop.
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 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