Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//https://www.facebook.com/ads/preferences/?entry_product=ad_settings_screen
//Put this in console and watch :)
clear();
document.querySelector('#u_0_t ._2qo2 ._2qo6').click();
setTimeout(()=>{
var seeMoreInterval = setInterval(()=>{
if(document.querySelector('._45yr')) {
document.querySelector('._45yr').click()
} else {
clearInterval(seeMoreInterval);
var adElements = [...document.querySelectorAll("._2b2e button")];
var adElementsCount = adElements.length;
adElements.map((adElement,ind)=>{
setTimeout(()=>{
adElement.click()
if(adElementsCount === ind + 1) {
setTimeout(()=>window.location.reload(),1000)
}
},ind*500);
});
}
},2000);
},2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment