Skip to content

Instantly share code, notes, and snippets.

View jscul's full-sized avatar

John Cullen jscul

View GitHub Profile
@jscul
jscul / deploy.yml
Last active August 3, 2021 17:14
Build React App/Deploy EB On Push
name: Build React App/Deploy EB On Push
on:
push:
branches:
- production
- development
jobs:
@jscul
jscul / downloadImagesZIP.js
Last active September 19, 2021 04:04
Downloads All Images on Page
(async () => {
const QUERY_SELECTOR = "img";
// ! get image blobs
let blobs = [...document.querySelectorAll(QUERY_SELECTOR)].map(
async ({src}) => ({
src,
blob: await (await fetch(src, {mode: "no-cors"})).blob(),
})
);