Created
June 14, 2019 00:45
-
-
Save shreve/4a064b94086fb81093afcfb0a76ee8db to your computer and use it in GitHub Desktop.
Easy Tweet Delete
This file contains 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
let del = () => { | |
let links = [].slice.apply(document.querySelectorAll('.js-actionDelete button')); | |
let link = links.filter((el) => { return el.offsetHeight > 0 })[0]; | |
console.log(link); | |
if (link) { link.click(); } | |
let el = document.querySelector('.delete-action'); | |
if (el.offsetHeight > 0) { el.click(); } | |
} | |
setInterval(del, 300); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run this then press the details expander to delete tweets with one click. This script automatically presses the context menu item and the deletion dialog button.