How to Block Ads and Trackers

Browseasy is using powered by Cliqz to block ads and trackers. In order to enable it, you need to pass blockAds querystring param in your connection string.
 
// Your unique connection string.
const BROWSEASY_CONNECTION_STRING = `${BROWSEASY_ENDPOINT}?code=${BROWSEASY_API_KEY}`;

// Your unique connection string to block ads and trackers.
const BROWSEASY_BLOCKADS_CONNECTION_STRING = `${BROWSEASY_CONNECTION_STRING}&blockAds`;
...
// Run headless browser on the cloud.
    const browser = await puppeteer.connect({
        browserWSEndpoint: BROWSEASY_BLOCKADS_CONNECTION_STRING,
        // Always reset default viewport.
        defaultViewport: null
    });
...