Skip to content

Instantly share code, notes, and snippets.

@nsuan
Last active November 14, 2024 00:42
Show Gist options
  • Save nsuan/a2e42dbbde6aaa2c4ff545c7c38dd180 to your computer and use it in GitHub Desktop.
Save nsuan/a2e42dbbde6aaa2c4ff545c7c38dd180 to your computer and use it in GitHub Desktop.
Delete all <s>anime.exe</s> tweets
/*
INSRUCTIONS:
Open your twitter profile page, open the Firefox developer console, paste this in, then hit enter.
As of Nov-13-2024:
_____ _ _ ___ ___ __ _____ _ _ ___ ___ _ ___ _____ ___
|_ _| || |_ _/ __| \ \ / /_ _| | | | | \| __| | | __|_ _| __|
| | | __ || |\__ \ \ \/\/ / | || |__| |__ | |) | _|| |__| _| | | | _|
|_| |_||_|___|___/ \_/\_/ |___|____|____| |___/|___|____|___| |_| |___|
_ _ _ __ _____ _ _ ___ _______ _____ ___ _____ ___
/_\ | | | | \ \ / / _ \| | | | _ \ |_ _\ \ / / __| __|_ _/ __|
/ _ \| |__| |__ \ V / (_) | |_| | / | | \ \/\/ /| _|| _| | | \__ \
/_/ \_\____|____| |_| \___/ \___/|_|_\ |_| \_/\_/ |___|___| |_| |___/
You may need to refresh the page occationaly because twitter's website stucks.
Whenver you refresh you'll need to run it again. The multi-line javascript console works best for this.
You'll also need to run it on your replies page if you want every tweet deleted.
If you use/copy this code you agree to the following:
I'm not resonsible for what you do with this code.
I'm ESPECIALLY not responsible if Elon gets babymad about this code.
Once again:
_____________________________________________________________________________
/ _____ _ _ ___ ___ __ _____ _ _ ___ ___ _ ___ _____ ___ \
| |_ _| || |_ _/ __| \ \ / /_ _| | | | | \| __| | | __|_ _| __| |
| | | | __ || |\__ \ \ \/\/ / | || |__| |__ | |) | _|| |__| _| | | | _| |
| |_| |_||_|___|___/ \_/\_/ |___|____|____| |___/|___|____|___| |_| |___| |
| |
| _ _ _ __ _____ _ _ ___ _______ _____ ___ _____ ___ |
| /_\ | | | | \ \ / / _ \| | | | _ \ |_ _\ \ / / __| __|_ _/ __| |
| / _ \| |__| |__ \ V / (_) | |_| | / | | \ \/\/ /| _|| _| | | \__ \ |
| /_/ \_\____|____| |_| \___/ \___/|_|_\ |_| \_/\_/ |___|___| |_| |___/ |
\ /
-----------------------------------------------------------------------------
\ ^__^
\ (xx)\_______
(__)\ )\/\
U ||----w |
|| ||
*/
setInterval(function () {
itemsee = document.querySelectorAll('[data-testid="unretweet"]');
for (let n = 0; n < itemsee.length; n++) {
let confirm = itemsee[n];
confirm.click();
}
}, 1000);
setInterval(function () {
itemsee2 = document.querySelectorAll('[data-testid="unretweetConfirm"]');
for (let n = 0; n < itemsee2.length; n++) {
let confirm = itemsee2[n];
confirm.click();
}
}, 1000);
setInterval(function () {
window.scrollBy(0, window.innerHeight);
}, 10000);
setInterval(function () {
mores = document.querySelectorAll('[aria-label="More"]');
for(x = 0; x < mores.length; x++) {
let v = mores[x];
v.click();
}
},1000)
setInterval(function () {
spans = document.querySelectorAll('span');
for (let i = 0; i < spans.length ; i++){
let v2 = spans[i];
if (v2.textContent === 'Delete') {
let item = v2.parentElement.parentElement.parentElement;
item.click();
}
}
}, 500);
setInterval(function () {
itemse = document.querySelectorAll('[data-testid="confirmationSheetConfirm"]');
for (let n = 0; n < itemse.length; n++) {
let confirm = itemse[n];
confirm.click();
}
}, 500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment