If you ever want to unlike all your Instagram likes in one go, I got you.
Copy the one line of JavaScript below into a bookmark in your browser.
If you want to use it just go to your Instagram likes page and click the bookmark, it's that easy!
After un-liking, the page refreshes automatically and you can run the bookmark again if you have more posts to unlike.
javascript: (() => { [...document.querySelectorAll("div")].find((div) => div.querySelector("span")?.textContent.trim() === "Select")?.click(); setTimeout(() => { [...document.querySelectorAll('[data-testid="bulk_action_checkbox"]')].slice(1, 100).forEach((el, i) => setTimeout(() => el.click(), i * 25)); setTimeout(() => { [...document.querySelectorAll("div")].find((div) => div.querySelector("span")?.textContent.trim() === "Unlike")?.firstChild?.firstChild?.firstChild?.firstChild?.firstChild?.click(); setTimeout(() => { [...document.querySelectorAll("button")].find((div) => div.querySelector("div")?.textContent.trim() === "Unlike")?.firstChild?.click(); setTimeout(() => location.reload(), 1000); }, 500); }, 60 * 25 + 1000); }, 500); })();
This is the above but more readable.
javascript: (() => {
[...document.querySelectorAll("div")].find((div) =>
div.querySelector("span")?.textContent.trim() === "Select")?.click();
setTimeout(() => {
[...document.querySelectorAll('[data-testid="bulk_action_checkbox"]')]
.slice(1, 100)
.forEach((el, i) => setTimeout(() => el.click(), i * 25));
setTimeout(() => {
[...document.querySelectorAll("div")]
.find((div) => div.querySelector("span")?.textContent.trim() === "Unlike")
?.firstChild?.firstChild?.firstChild?.firstChild?.firstChild?.click();
setTimeout(() => {
[...document.querySelectorAll("button")]
.find((div) => div.querySelector("div")?.textContent.trim() === "Unlike")
?.firstChild?.click();
setTimeout(() =>
location.reload(),
1000
);
}, 500);
}, 60 * 25 + 1000);
}, 500);
})();