Join Nostr
2025-09-23 17:25:34 UTC

Piper Thunstrom on Nostr: So I had a bad thought, and went and tested it. Want the jquery node lookup syntax ...

So I had a bad thought, and went and tested it.

Want the jquery node lookup syntax but want to use the browser APIs directly?

`let $ = document.querySelectorAll.bind(document)`

You won't get the mutation methods or the animations, but you do get:

`$("#my-cool-thing")`

which returns a NodeList.

Do with this cursed code as you will.

#javascript #vanilla