Skip to content

Instantly share code, notes, and snippets.

View ivmirx's full-sized avatar
☸️
may all beings be happy

Ivan Mir ivmirx

☸️
may all beings be happy
View GitHub Profile
@rcx
rcx / delete-all-messages.js
Last active December 6, 2025 22:14 — forked from niahoo/delete-all-messages.js
Delete all your messages in a Discord channel
/*
* Discord: Don't copy stuff into this box
* Me: dOn'T COpy sTuFf iNtO tHIs bOx
*/
clearMessages = function (guild_id, author_id, authToken, deleted = new Set()) {
if (guild_id[0] == "_" && guild_id[guild_id.length - 1] == "_") {
alert("Oops! You forgot to set the guild_id. Please fill it in.")
return;
}
if (author_id[0] == "_" && author_id[author_id.length - 1] == "_") {
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active January 29, 2026 15:35
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }