I forgot what this was for.
Copy the one line of JavaScript below into the console of the devtools.
After un-liking, the page scrolls down to load more automatically, and you can run the bookmark again.
(async () => {const buttons = [...document.querySelectorAll('[data-testid="unlike"]')];for (const btn of buttons) {btn.click();await new Promise(res => setTimeout(res, 200)); // small delay}console.log(`Clicked ${buttons.length} unlike buttons.`);await new Promise(res => setTimeout(res, 300));window.scrollBy({ top: window.innerHeight * 2, behavior: 'smooth' });})();
This is the above but more readable.
(async () => {
const buttons = [...document.querySelectorAll('[data-testid="unlike"]')];
for (const btn of buttons) {
btn.click();
await new Promise(res => setTimeout(res, 200)); // small delay
}
console.log(`Clicked ${buttons.length} unlike buttons.`);
// Scroll down two viewport heights
await new Promise(res => setTimeout(res, 300));
window.scrollBy({ top: window.innerHeight * 2, behavior: 'smooth' });
})();