Spoof Bluesky mobile detection

Temporary userscript to work around Bluesky's incorrect touch device detection

Author
brw
Daily installs
0
Total installs
9
Ratings
1 0 0
Version
1.0
Created
2024-11-21
Updated
2024-11-24
Size
479 Bytes
License
MIT
Applies to

Bluesky assumes that devices reporting they support multi-touch (e.g. devices with touch screen, multi-touch trackpad or a drawing tablet attached) are mobile devices. This means it hides the volume slider on videos, hides hover cards, and inserts a new line on pressing enter when writing DMs instead of sending them.

This temporary userscript overrides navigator.maxTouchPoints to be 0 to work around this incorrect touch device detection.

Will be obsolete once https://github.com/bluesky-social/social-app/pull/5919 gets merged.