Minesweeper Shortcut Keys for PuzzleMadness

Adds keyboard shortcuts to PuzzleMadness Minesweeper (Hard) for selecting ╳ (x), 💣 (c), and rubber (z).

作者
Hua Journey
日安装量
0
总安装量
0
评分
0 0 0
版本
0.3
创建于
2025-05-26
更新于
2025-05-26
大小
1.7 KB
许可证
MIT
适用于

脚本名称
Minesweeper Shortcut Keys for PuzzleMadness

简介 (Summary)
Add keyboard shortcuts to PuzzleMadness Minesweeper (Hard) for faster gameplay. Press x to select ╳ (safe), c to select 💣 (mine), and z to select the rubber (eraser).

完整描述 (Description)
This script enhances the PuzzleMadness Minesweeper (Hard) game (puzzlemadness.co.uk/minesweeper/hard) by adding keyboard shortcuts for selecting tools:

x: Selects the safe mark (╳).
c: Selects the mine mark (💣).
z: Selects the rubber (eraser) to clear marks.
The script includes a retry mechanism to handle dynamically loaded elements and prevents keyboard event conflicts. If the shortcuts don't work, check the browser console (F12) for logs and verify the button class names in the page's HTML.

Note: The mine button's class name is assumed to be js-mine-picker. If it differs (e.g., js-bomb-picker), update the script accordingly.

附加信息 (Additional Info)
Version: 0.3
License: MIT
Support: Report issues or suggest improvements on Greasy Fork.
Compatibility: Tested on Chrome with Tampermonkey. May work with other browsers/extensions supporting user scripts.
Debugging: Open the browser console (F12) to check logs if shortcuts fail. Ensure the webpage is loaded fully before using shortcuts.
Class Name Verification: Use developer tools (F12 -> Elements) to confirm button class names, especially for the mine (💣) button.