Anyone have this for Twitter? I want to remove most of my tweets but the official API costs $200
I deleted a tweet and saw this request:
HTTP POST https://x.com/i/api/graphql/VstuveVgh5q5jk7lmnVopqr/DeleteTweet
{
"variables": {
"tweet_id":"12344567899123",
"dark_request":false
},
"queryId":"VstuveVgh5q5jk7lmnVopqr"
}
You can execute these from javascript in the browser if the auth part is too complicated.### Update, this is the pure javascript console way, if you don't want to write your own client doing HTTP posts
I played with the console more and got these parts:
// Find all tweets on screen (this gives you the tweet IDs too)
document.querySelectorAll('a > time')
// Click the "more" button on the first tweet document.querySelectorAll('a > time')[0].parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.querySelector('button').click()
// Click delete on the tweet document.querySelectorAll('[data-testid="Dropdown"]')[0].children[0].click()
// Confirm delete document.querySelectorAll('[data-testid="confirmationSheetConfirm"]')[0].click()You could do something similar; as someone else suggested, just walk the feed via DOM elements.
I agree with sibling commenters that automating the browser with DOM APIs is an easier route to go though.