Skip to content

Instantly share code, notes, and snippets.

@MakeMeCool
Last active February 7, 2024 01:25
Show Gist options
  • Save MakeMeCool/061a5bd5f806a83c774394a6e26d0062 to your computer and use it in GitHub Desktop.
Save MakeMeCool/061a5bd5f806a83c774394a6e26d0062 to your computer and use it in GitHub Desktop.
Remove Myntra's wishlist all at once
// So, I saw a Gist on GitHub for removing wishlist for Amazon using browser's console but couldn't find it for Flipkart, so I thought I would do it for myself, and it worked, so I am sharing the same with you. Hope it helps.
// Copy the code as is and paste it in console using CTRL + SHIFT + J.
//If it doesn't allow pasting in console just type 'allow pasting' and hit enter then copy and paste this code.
// Note: It will only remove what is visible, so you may have to use it multiple times.
function deleteSavedItems() {
let query = document.getElementsByClassName("myntraweb-sprite itemcard-removeMark sprites-remove")
timeout(query)
query = document.getElementsByClassName("myntraweb-sprite itemcard-removeMark sprites-remove")
timeout(query)
}
function timeout(query) {
if (query.length) query[0].click()
if (query.length > 1) setTimeout(deleteSavedItems, 100)
else console.log('Finished')
}
deleteSavedItems()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment