您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds keyboard shortcuts to PuzzleMadness Minesweeper (Hard) for selecting ╳ (x), 💣 (c), and rubber (z).
脚本名称
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.