Created
June 16, 2019 04:54
-
-
Save delqn/5e0e8bc9dbd76616ea230cc1ea1d1fa3 to your computer and use it in GitHub Desktop.
Delete Messages from Gmail -- GreaseMonkey script
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
// ==UserScript== | |
// @name Unnamed Script 525870 | |
// @version 1 | |
// @grant none | |
// @match https://mail.google.com/mail/u/0/* | |
window.addEventListener('load', function() { | |
for(let x of document.getElementsByName('t')) { | |
console.log(x); | |
x.click(); | |
} | |
document.querySelector('[value=Delete]').click() | |
}, false); | |
// ==/UserScript== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment