Skip to content

Instantly share code, notes, and snippets.

@bohwaz
Created January 8, 2025 15:15
Show Gist options
  • Save bohwaz/f77851b4c442a8eac9bd4cfcb7929e69 to your computer and use it in GitHub Desktop.
Save bohwaz/f77851b4c442a8eac9bd4cfcb7929e69 to your computer and use it in GitHub Desktop.
"Select all" Instagram activity (to delete all posts, all comments, all likes, etc.)
// Instagram doesn't allow to select all your posts, or all your comments, etc. to delete them.
// You can only select them one by one. This is slow as hell.
// Use this to select all the photos, comments, etc.
// 1. Open this page: https://www.instagram.com/your_activity/interactions/likes/
// 2. click on the "select" button
// 3. Press the F12 key to open the developer tools
// 4. open the console tab in the developer tools
// 5. copy-paste the following code in the command prompt of the console and press enter
// 6. Click on Delete/Unlike button
(async function () { var a = document.querySelectorAll('[data-bloks-name="bk.components.Collection"] [aria-label="Image with button"]'); for (var i = 0; i < a.length; i++) { var e = a[i]; e.click(); await new Promise(r => setTimeout(r, 50)); } })();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment