pkmnq @pkmnq

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

gilbert189 @gilbert189

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

For some reason I prefer querySelector lately

Nov 25, 2022, 7:12 AM
4
Nov 25, 2022, 12:13 PM
4
View all

comments

Highlighted comment

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