Skip to content

Instantly share code, notes, and snippets.

@heptal
Created April 11, 2019 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heptal/4a2884ee239202516d9245a159322a94 to your computer and use it in GitHub Desktop.
Save heptal/4a2884ee239202516d9245a159322a94 to your computer and use it in GitHub Desktop.
(async () => { while (document.querySelectorAll(`[conversation="conversation"]`).length) {
for (let sel of [`gv-thread-item>div`, `[aria-label="More options"]`, `[aria-label="Delete"]`, `[aria-label="Delete"]`]) {
await (new Promise((resolve) => setTimeout(resolve, 300))); document.querySelector(sel).click() }}})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment