Spoof Bluesky mobile detection

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

ئاپتورى
brw
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
9
باھا نومۇرى
1 0 0
نەشرى
2.0
قۇرۇلغان ۋاقتى
2024-11-21
يېڭىلانغان ۋاقتى
2025-04-10
Size
898 بايت
ئىجازەتنامىسى
MIT
قوللايدىغىنى

Update: this userscript is now obsolete as my PR with a fix has been merged and deployed. There is no longer a need to use it.

Old description:

Bluesky assumes that devices reporting they support multi-touch 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. However, checking for multi-touch also matches other devices like laptops/computers with a touch screen, multi-touch trackpad or a drawing tablet attached.

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 (or something better) gets merged.

长期地址
遇到问题?请前往 GitHub 提 Issues。