|
|
|
|
|
by unsupp0rted
1522 days ago
|
|
I use the browser's dev console to try out short JS snippets or for simple on-page scraping. (for longer JS as a scratchpad I use https://runjs.app). The browser's dev console gives you access to the current page's DOM, plus anything you can do in JS. So stuff like `document.querySelectorAll(".foo")` works. Also `fetch()` works within the page's context. Apart from that, what are some other useful things one can do in the dev console? |
|
>> other useful things one can do in the dev console?
There just seems to be a suprising amount of built in stuff in the browser that does more than rendering text/layout.
I participated in some interesting work at a hackathon a while ago that used a web audio component to signal back and forth between various laptops and phones. It was mostly getting hacked together in the browser dev console.
(I'll come back with some code if I can find it...)
EDIT: OK, here it is: https://github.com/cantino/ultrastound