if querySelector is the better version of getElementsByX, then what is the better version of

Do you prefer using the getElementsBy... functions or querySelector?

For some reason I prefer querySelector lately

Nov 25, 2022, 12:13 PM
1 0 4

comments

Good suggestion, unfortunately this is a userscript so I can’t use it

I’ll keep that in mind when I’m doing something actually useful

ah, okay, for vanilla js i don’t think there’s any way to make that any more efficient