Skip to content

Instantly share code, notes, and snippets.

@sammoore
Last active January 21, 2017 20:26
Show Gist options
  • Save sammoore/a6eeea4a25d5403a706763c3d1d2c237 to your computer and use it in GitHub Desktop.
Save sammoore/a6eeea4a25d5403a706763c3d1d2c237 to your computer and use it in GitHub Desktop.
Checks all conversations in the current window and clicks the delete button in Gmail's basic HTML viewer.
// Assumes $ and $$ are aliased to document.querySelector and document.querySelectorAll in the given environment.
$$('[name=t]').reduce(function (d, el) { el.checked = tr; return d; }, $('input[value=Delete]')).click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment