Created
October 21, 2019 10:48
-
-
Save antonpetrovmain/dcf94dc49ab11827c34bcf1b4e7e91ca to your computer and use it in GitHub Desktop.
How to archive all messages from inbox?
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
| (function run() { | |
| let all = document.querySelectorAll('div[aria-label="Conversation actions"]'); | |
| if (all.length == 0) return; | |
| let a = all[0]; | |
| a.click(); | |
| setTimeout(() => { | |
| document.querySelectorAll('a[role=menuitem]').forEach(act => { | |
| if (act.innerText.match(/Archive/)) act.click(); | |
| }); | |
| run(); | |
| }, 250); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment