In here are neat scripts to make the most out of the Web Audio API.
You can paste them into the DevTools.
| function Test-CommandExists { | |
| param ($command) | |
| $oldPreference = $ErrorActionPreference | |
| $ErrorActionPreference = 'stop' | |
| try { | |
| if(Get-Command $command) { | |
| return $true | |
| } | |
| } catch { |
| import os.path | |
| import typing | |
| from mitmproxy import command | |
| from mitmproxy import flow | |
| from mitmproxy import tcp | |
| from mitmproxy import exceptions | |
| from mitmproxy import ctx | |
| import json | |
| import base64 |
In here are neat scripts to make the most out of the Web Audio API.
You can paste them into the DevTools.
| function wrapObject(fn, that, args, name) { | |
| const instance = fn.apply(that, args); | |
| instance.__base = instance; | |
| return new Proxy(instance, { | |
| get: (target, key) => { | |
| if(!['__base'].includes(key)) console.log(`[GET] ${name}.${key}`); | |
| const value = target[key]; | |
| return value; | |
| }, | |
| set: (target, key, value) => { |
| const IgApiClient = require('instagram-private-api').IgApiClient; | |
| const ig = new IgApiClient(); | |
| ig.state.generateDevice(process.env.IG_USERNAME); | |
| // you'll have to define IG_USERNAME and IG_PASSWORD | |
| (async ()=>{ | |
| const response = await ig.account.login(process.env.IG_USERNAME, process.env.IG_PASSWORD); | |
| console.log(response); | |
| })(); |
I hereby claim:
To claim this, I am signing this object: