Spoof Bluesky mobile detection

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

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Spoof Bluesky mobile detection
// @namespace   https://bas.sh
// @match       https://bsky.app/*
// @match       https://main.bsky.dev/*
// @grant       none
// @version     2.0
// @author      Bas (@bas.sh)
// @description Temporary userscript to work around Bluesky's incorrect touch device detection (obsolete)
// @license     MIT
// @run-at      document-start
// ==/UserScript==

/*
 * If you're reading this then that means you can remove/uninstall this
 * userscript :).
 *
 * This workaround is no longer necessary as my PR with a fix has been merged
 * and deployed.
 *
 * If you do still experience this issue (hovercards/volume slider not showing
 * up), then please open a new GitHub issue at
 * https://github.com/bluesky-social/social-app/issues/new?template=bug_report.yml
 */
//Object.defineProperty(navigator, "maxTouchPoints", { get: () => 0 });