Skip to content

Instantly share code, notes, and snippets.

@mrkacan
Created August 23, 2019 11:40
Show Gist options
  • Save mrkacan/bd069320b7c29b808349a84761d2a5e7 to your computer and use it in GitHub Desktop.
Save mrkacan/bd069320b7c29b808349a84761d2a5e7 to your computer and use it in GitHub Desktop.
Twitter bulk tweet deleter
let interval = null
let ntt = function () {
interval = setInterval(function () {
document.querySelector('[data-testid=caret]').click()
setTimeout(function () {
document.querySelector('[role=button]').click()
document.querySelector('[data-testid=confirmationSheetConfirm]').click()
}, 200)
}, 1000)
}
let scrollInterval = null
let count = 10000
let scrollToEnd = function () {
scrollInterval = setInterval(function () {
count += 1000
window.scrollTo(0, count);
}, 15000)
}
ntt()
scrollToEnd()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment