Skip to content

Instantly share code, notes, and snippets.

@bkanhu
Created January 19, 2026 18:04
Show Gist options
  • Select an option

  • Save bkanhu/780a8c2c00330621d6f678e6541f7e5c to your computer and use it in GitHub Desktop.

Select an option

Save bkanhu/780a8c2c00330621d6f678e6541f7e5c to your computer and use it in GitHub Desktop.
Remove wishlist item from Myntra. Uses document.querySelector() and btn.click()

This script clears all wishlist items on Myntra. Uses document.querySelector() and btn.click().

How to Use

  • Open the wishlist page
  • Open Browser DevTools → Console
  • Paste the script
  • Press Enter
  • Let it run until completion
(async () => {
  const delay = ms => new Promise(res => setTimeout(res, ms));

  while (true) {
    const btn = document.querySelector(".itemcard-removeIcon");
    if (!btn) break;
    btn.click();
    await delay(300);
  }

  console.log("Wishlist cleared");
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment