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
สร้างเมื่อ
26-05-2025
อัปเดตเมื่อ
26-05-2025
Size
1.73 กิโลไบต์
สัญญาอนุญาต
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.