Skip to content

Instantly share code, notes, and snippets.

@MatthewCash
MatthewCash / script.js
Created September 4, 2021 18:34
Download Pearson Textbook PNGs
// Edit the 2 values below and run in browser console
const bookUrl = 'https://plus.pearson.com/eplayer/pdfassets/prod1/XXXXXXX/UUIDXXXXXXXXXXX'
const lastPageNum = 1431;
const download = (filename, url) => {
const element = document.createElement('a');
element.setAttribute('href', url);
element.setAttribute('download', filename);