Skip to content

Commit 580b23f

Browse files
authored
fix(expand-collapse-release-groups): prevent button text selection (#1051)
_Note: Code and description were written with AI-tools_ ### Description Prevent accidental highlighting and text selection on the expand/collapse toggle button when clicking release groups and releases. ### Key Changes - Add `user-select: none` to the toggle button element in `create_button`. ### Verification - Validated with `oxlint` (0 errors, 0 warnings). - Verified that rapid clicks or drag gestures on the toggle button do not highlight the glyph. ### Version Bump - Bumped `expand-collapse-release-groups.user.js` version from `2026.7.7.1` to `2026.8.28.1`.
1 parent 05bac00 commit 580b23f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

expand-collapse-release-groups.user.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description See what's inside a release group without having to follow its URL. Also adds convenient edit links for it.
44
// @namespace http://userscripts.org/users/266906
55
// @author Michael Wiencek <mwtuea@gmail.com>
6-
// @version 2026.7.7.1
6+
// @version 2026.8.28.1
77
// @license GPL
88
// @downloadURL https://raw.githubusercontent.com/murdos/musicbrainz-userscripts/master/expand-collapse-release-groups.user.js
99
// @updateURL https://raw.githubusercontent.com/murdos/musicbrainz-userscripts/master/expand-collapse-release-groups.user.js
@@ -87,6 +87,7 @@ function create_button(url, dom_callback, success_callback, error_callback) {
8787
button.style.cursor = 'pointer';
8888
button.style.marginRight = '4px';
8989
button.style.color = '#777';
90+
button.style.userSelect = 'none';
9091

9192
button.addEventListener(
9293
'mousedown',

0 commit comments

Comments
 (0)