News for hackers. Stuff that matters.
Re:The Page with No Code by simonw on Saturday January 21, 2023 @11:18AM (#34467454)
Web pages are programmable - way more so than desktop or mobile apps.

You can open up the DevTools and start poking around - including running your own JS against the page DOM using the console.

You can write bookmarklets, or user scripts, or even fill browser extensions that run your own custom scripts.

You can even run a headless browser to automate this stuff further - a trick I use a bunch with my shot-scraper CLI tool, see https://simonwillison.net/2022/Mar/14/scraping-web-pages-sho... and https://til.simonwillison.net/shot-scraper/scraping-flourish

There are no comments on this comment yet.