Skip to content

Instantly share code, notes, and snippets.

View lionbytes's full-sized avatar
Release the Kraken!

Bashar Ghadanfar lionbytes

Release the Kraken!
View GitHub Profile
lionbytes / Automatically Undo Retweets or Reposts
Last active February 20, 2024 20:22
A JavaScript script that deliberately and automatically undoes reposts or retweets one by one on X (Twitter).
* Before you execute the script on your profile page, scroll down to the 7th post or so.
* Use stop() to clear the time interval and stop the process at will.
let interval;
// Stop process function
const stop = () => {
lionbytes / gist:2e8ad01d0ec318354aa5e95b746c7e54
Last active February 15, 2023 13:04
Twitter-API-Friendly Like Remover
For those who want to remove their Twitter likes in bulk, but are being blocked by Twitter's API,
I give you a slower version that is more API-friendly; it removes each like one at a time.
Open your Twitter likes page on a separate browser window, then run the following code in the console:
setInterval(() => {
window.scrollTo(0, window.pageYOffset+300);
}, 1000);