4 ms·
TIL (last week) Chrome DevTools understands $$ as document.querySelector [0] e.g. $$('div[role="img"] img') [0] https://javascript.plainenglish.io/an-easy-way-
by cuttysnark 5y ago
TIL (last week) Chrome DevTools understands $$ as document.querySelector [0] e.g. $$('div[role="img"] img')
[0] https://javascript.plainenglish.io/an-easy-way-of-accessing-elements-of-a-webpage-in-browser-9ad848dceba1 https://javascript.plainenglish.io/an-easy-way-of-accessing-...
- awinter-py 5y agouseful! thanks
- majewsky 5y agoI think you mean `document.querySelectorAll`. `document.querySelector` is aliased to $, at least in my Firefox. Also, as a caveat, this only works when `window.$` and `window.$$` have not been defined by the site's JS code.