Usage:
- Use code below and create a bookmarklet here: https://mrcoles.com/bookmarklet/
- Drag bookmarklet to Chrome bookmarks toolbar
- Navigate to 'https://www.facebook.com/ads/preferences'
const pagingInterval = setInterval(() => {
const seeMore = Array.from(document.querySelectorAll('._45yr'));
if (seeMore.length) {
seeMore.forEach($link => $link.click());
} else {
clearInterval(pagingInterval);
Array.from(document.querySelectorAll('.accessible_elem'))
.filter($button => $button.innerText === 'Remove' || $button.innerText === 'Hide all ads from this advertiser')
.forEach(($button, index) => {
// API may be throttled, just in case let's add a small delay
setTimeout(() => $button.click(), index * 100);
});
}
}, 250);