This script is designed to automate the process of unfavoriting tweets on X.com (formerly Twitter). It fetches the list of liked tweets for a user and removes the likes in batches, handling pagination and rate limits.
- Access the Likes tab on X.com, e.g.,
https://x.com/xxxxxxxx/likes
, replacingxxxxxxxx
with your username. - Open your browser's developer tools (usually by pressing
F12
orCtrl+Shift+I
). - Go to the Network tab and look for requests made to the X.com API.
- Copy the
authorization
andX-Client-Transaction-Id
values from the request headers. Refer to the explanation provided in the original repository for more details. - Replace the placeholders for
authorization
,client_tid
, and other required variables in the script with the values you copied. - Copy the script into your browser's developer console (tested on Google Chrome) or a Node.js environment.
- Run the script to start unfavoriting tweets.
- The script uses the
UnfavoriteTweet
GraphQL endpoint to remove likes. - It respects API rate limits by introducing delays between requests.
- Ensure you have the necessary permissions and credentials to access the X.com API.
This script is for educational purposes only.
Use it responsibly and ensure compliance with X.com’s terms of service.
I am not responsible for any misuse of this script. Use it at your own risk.
This script was inspired by the repository NietzscheKadse/XeetEntfernierer.