Script for online golf booking in MiScore app

Logs in and redirects directly to a specific booking event when pressing Alt + 8.

作者
Pablo Stefano
日安装量
0
总安装量
0
评分
0 0 0
版本
5.4
创建于
2025-06-23
更新于
2025-06-30
大小
12.2 KB
许可证
MIT
适用于
所有网站

CMS AUTO LOGIN SCRIPT — USER GUIDE

How to run the script manually?
- After opening the event booking page (e.g. https://royalqueensland.miclub.com.au/members/bookings/open/event.msp?...),
- Press ALT + 8 on your keyboard
- The script will automatically log in and redirect to the booking page

How to run the script automatically at a set time?
- The script checks the current time every second
- When the exact time matches the preset time (e.g. 20:32:10), it will automatically log in and attempt to make a booking

Three important variables to configure in the script:
1. TARGET_EVENT_ID — the ID of the event you want to book (e.g. "1535192496").
This is the identifier of the specific event you are trying to reserve.

2. startTime and endTime — the time range in which the script will look for available slots (e.g. "16:00" to "16:30").
The script searches only in this time window to find available places.

3. targetHour, targetMinute, targetSecond — the exact time when the script should start and attempt login and booking.

General script behavior in simple terms:
1. When you land on the login page, the script can auto-login if the flag is set.
2. Once you're on the CMS page and the URL has a special flag, the script redirects you directly to the booking event.
3. On the event page, it searches for available groups with four open "Book Me" slots within the specified time range.
4. When it finds a match, it clicks to book the slot.
5. If there’s an issue (e.g., someone else has locked the row), it will skip and try the next one.
6. You can always manually trigger it by pressing ALT + 8.