Your MacBook microphone can detect ultrasonic frequencies above 22khz, though I'm not sure whether my observed ceiling is an artifact of the microphone, or of the speaker I was using to emit the tones.
In my informal tests, most people are unable to hear any tone above 20khz or so. This is discovered, naturally, by starting with the highest pitch tone I can generate at the loudest volume, and lowering the pitch gradually until somebody covers their ears and starts screaming. This is usually the youngest person in the room.
You can generate and receive audio using web audio APIs. Creating a browser extension to detect ultrasonic comma would be fairly straightforward.
However, most audio output (at least back in the nineties and naughties) is not capable or creating sounds reliably above 16khz. They almost always have a low pass filter on which cuts it out. Apparently most dell laptop speakers cant even manage above 10khz
"You can't hear" doesn't have to be high frequencies though.
It can be more subtle like phase shifts and other "in audible range" fingerprinting.
While I've not used it for getting on 20 years now, I did do a lot of software audio engineering back in the day, everything from RF to DSP.
In my informal tests, most people are unable to hear any tone above 20khz or so. This is discovered, naturally, by starting with the highest pitch tone I can generate at the loudest volume, and lowering the pitch gradually until somebody covers their ears and starts screaming. This is usually the youngest person in the room.
You can generate and receive audio using web audio APIs. Creating a browser extension to detect ultrasonic comma would be fairly straightforward.