Discourse: Disable Touch Detection

Overrides browser APIs to disable touch-based UI adjustments in Discourse forums.

Tác giả
chaban
Cài đặt hàng ngày
0
Số lần cài đặt
0
Đánh giá
0 0 0
Phiên bản
1.0
Đã tạo
25-08-2025
Đã cập nhật
25-08-2025
Kích thước
2 KB
Giấy phép
MIT
Áp dụng cho

This script prevents Discourse from hiding editor toolbar functions on touch-capable devices.

It works by spoofing the browser APIs that Discourse uses for touch detection, ensuring the full desktop toolbar is always visible. The script is designed to be robust, supporting both recent and old versions of Discourse.

By default, this script only runs on the MetaBrainz Community Discourse. To use it on other forums, you can add more @match directives in the script's settings.

Before:
Before

After:
After

See also "Why so many options in the gear editor menu? - UX - Discourse Meta"