Created
March 24, 2024 14:40
-
-
Save im-noob/c98f59abe8136590d5a0f61a0ec35d3d to your computer and use it in GitHub Desktop.
Delete Retweet.js
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
/* 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