This page permanently redirects to gemini://m0yng.uk/2024/11/delete-all-the-tweets/.

delete all the tweets - M0YNG.uk

Created 2024-11-06

=> Tagged

Fuck twitter, anyway I've just deleted every tweet I posted since I joined in 2008 before deleting my accounts.

I threw this code together to do it, it sucks, it doesn't work without needing to refresh the entire page often, but it does work.

go to your profile, then "with replies", then open developer tools and paste this into the console, then when it seems to stop working refresh and do it again

document.querySelectorAll('[data-testid="unretweet"]').forEach(unretweet => {
    unretweet.click();
    setTimeout(confirmUnRetweet, 300);
});

function confirmUnRetweet() {
    document.querySelectorAll('[data-testid="unretweetConfirm"]').forEach(confirmUnRetweetElement => {
        confirmUnRetweetElement.click();
    })
}

function openMenu() {
    document.querySelectorAll('[data-testid="cellInnerDiv"] [aria-label="More"]').forEach(menuEl => {
        menuEl.click();
        setTimeout(clickDelete, 300);
    })
}

function clickDelete() {
    try {
        Array.from(
            document.querySelectorAll('[role="menuitem"]')).find(el => el.textContent.includes('Delete')).click();
            setTimeout(confirmDelete, 300);
    } catch (error) {
        console.error('can\'t click delete as there is no delete on this menu');
    }
}

function confirmDelete() {
    document.querySelector('[data-testid="confirmationSheetConfirm"]').click();
    setTimeout(openMenu, 300);
}
openMenu();

-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+-

๐Ÿ–ค Black Lives Matter

๐Ÿ’™๐Ÿค๐Ÿ’œ Trans Rights are Human Rights

โค๏ธ๐Ÿงก๐Ÿ’›๐Ÿ’š๐Ÿ’™๐Ÿ’œ Love is Love

Copyright ยฉ 2024 Christopher M0YNG - It is forbidden to use any part of this site for crypto/NFT/AI related projects.

=> Code snippets are licenced under the Hippocratic License 3.0 (or later.)

Page generated 2024-12-13 by Complex 19

Proxy Information
Original URL
gemini://m0yng.uk/2024/11/delete-all-the-tweets
Status Code
Success (20)
Meta
text/gemini;lang=en
Capsule Response Time
511.837302 milliseconds
Gemini-to-HTML Time
0.489061 milliseconds

This content has been proxied by September (3851b).