Skip to content

Instantly share code, notes, and snippets.

View phaalonso's full-sized avatar

Pedro Alonso phaalonso

  • Autbank
  • Brazil
View GitHub Profile
@phaalonso
phaalonso / intercept.js
Created February 21, 2022 22:24 — forked from jsoverson/intercept.js
Intercept responses with chrome and puppeteer
const puppeteer = require('puppeteer');
const prettier = require('prettier');
const atob = require('atob');
const btoa = require('btoa');
const scriptUrlPatterns = [
'*'
]
const requestCache = new Map();