Created
April 24, 2020 20:13
-
-
Save krrskl/136fe9d2d775b4ac8a26c6fb46d2b4cf to your computer and use it in GitHub Desktop.
This code is for delete all the tweets of your profile
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
/** | |
* This code work in the https://mobile.twitter.com/YOUR_USERNAME/with_replies | |
* | |
*/ | |
const _this = $; | |
const clickFirstElement = () => { | |
_this( | |
".css-18t94o4.css-1dbjc4n.r-1777fci.r-11cpok1.r-1ny4l3l.r-bztko3.r-lrvibr" | |
).click(); | |
setTimeout(() => { | |
deleteElement(); | |
}, 1000); | |
}; | |
const deleteElement = () => { | |
_this( | |
".css-1dbjc4n.r-1loqt21.r-18u37iz.r-779j7e.r-23eiwj.r-o7ynqc.r-6416eg.r-13qz1uu" | |
).click(); | |
setTimeout(() => { | |
confirmDelete(); | |
}, 1500); | |
}; | |
const confirmDelete = () => { | |
_this( | |
".css-18t94o4.css-1dbjc4n.r-1dgebii.r-42olwf.r-sdzlij.r-1phboty.r-rs99b7.r-16y2uox.r-1w2pmg.r-145lgeb.r-9u3a9d.r-1fneopy.r-o7ynqc.r-6416eg.r-lrvibr" | |
).click(); | |
setTimeout(() => { | |
window.scrollBy(0, 300); | |
clickFirstElement(); | |
}, 3000); | |
}; | |
clickFirstElement(); |
vsfedorenko
commented
Feb 13, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment