Skip to content

Instantly share code, notes, and snippets.

@im-noob
Created March 24, 2024 14:40
Show Gist options
  • Save im-noob/c98f59abe8136590d5a0f61a0ec35d3d to your computer and use it in GitHub Desktop.
Save im-noob/c98f59abe8136590d5a0f61a0ec35d3d to your computer and use it in GitHub Desktop.
Delete Retweet.js
/* Step 1*/
myInterval = setInterval(function(){
window.scrollTo(0, document.body.scrollHeight);
},10000)
/* Step 2*/
clearInterval(myInterval);
// Open untweet button
function open_remove_tweet_button(){
eles = document.querySelectorAll('[data-testid="unretweet"]')
function myFunction(item) {
item.click()
}
eles.forEach(myFunction);
}
// untweet all
myInterval = setInterval(function(){
open_remove_tweet_button()
eles2 = document.querySelectorAll('[data-testid="unretweetConfirm"')
function demo(item2) {
item2.click()
}
eles2.forEach(demo);
}, 10000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment