Skip to content

Instantly share code, notes, and snippets.

View hashcott's full-sized avatar
😅
Working from home

Nguyen Duc Hanh hashcott

😅
Working from home
View GitHub Profile
function initFacebookAdDownloader() {
// Queue to store pending GraphQL responses
const processingQueue = {
items: [],
isProcessing: false,
processDelay: 500, // Delay between processing items
async add(response) {
this.items.push(response);
if (!this.isProcessing) {