Skip to content

Instantly share code, notes, and snippets.

View ardittristan's full-sized avatar

Ardit ardittristan

View GitHub Profile
import Cheeky from "cheeky-async";
import puppeteer from "puppeteer-extra";
import BlockResourcesPlugin from "puppeteer-extra-plugin-block-resources";
puppeteer.use(BlockResourcesPlugin({ blockedTypes: new Set(["stylesheet", "font", "image"]) }));
let timeout = setTimeout(() => {
process.exit(1);
}, 300000);