Skip to content

Instantly share code, notes, and snippets.

View luispmoraisc's full-sized avatar

luispmoraisc luispmoraisc

View GitHub Profile
@luispmoraisc
luispmoraisc / exampleConfigInterceptRequestsJs.ts
Last active July 7, 2022 20:42
Example of how to config InterceptRequestsJS
import { InterceptRequestsJs, ListItem } from 'intercept-requests-js';
const listItems: ListItem[] = [
{
listening: 'yahoo',
ignore: [],
executeWhenOpen: (context: XMLHttpRequest, args: (string | boolean)[]) => {
return { objectRequest: context, newArguments: args };
},
executeBeforeSend: (context: XMLHttpRequest, args: (string | boolean)[]) => {