feat: 优化文本匹配 (#2905)

This commit is contained in:
躁动的氨气
2026-02-21 22:08:20 +08:00
committed by GitHub
parent d352531098
commit 1bbd39f018
3 changed files with 13 additions and 12 deletions

View File

@@ -38,16 +38,16 @@
## 🛠️ 脚本设置项说明
| 配置项 | 描述 | 默认值 |
|------------------|------------------------------------|----------------|
| **runJS** | 我已阅读免责声明(未勾选无法执行) | `否` |
| **room** | 奇域关卡关键词或 GUID仅支持单个空则使用默认地图 | `37135473336` |
| **achievementMode** | 成就模式(请确保地图有成就) | `是` |
| **starMode** | 收藏模式(请确保地图未失效,并确保地图已被收藏) | `否` |
| **starRoomName** | 收藏模式所使用的地图名称不是房间ID是地图名字,需先开启收藏模式 | `碰碰墙` |
| **thisAttempts** | 指定通关次数(`0` = 无限,直到达到每周上限) | `0` |
| **weekMaxExp** | 每周可获取的经验值上限 | `4000` |
| **singleExp** | 每次通关可获得的经验值(不可为零) | `270` |
| 配置项 | 描述 | 默认值 |
|------------------|---------------------------------------|----------------|
| **runJS** | 我已阅读免责声明(未勾选无法执行) | `否` |
| **room** | 奇域关卡关键词或 GUID仅支持单个空则使用默认地图 | `37135473336` |
| **achievementMode** | 成就模式(请确保地图有成就) | `是` |
| **starMode** | 收藏模式(请确保地图未失效,并确保地图已被收藏) | `否` |
| **starRoomName** | 使用的地图名称不是房间ID是地图名字。包含即可,但不要与其他地图重名 | `碰碰墙` |
| **thisAttempts** | 指定通关次数(`0` = 无限,直到达到每周上限) | `0` |
| **weekMaxExp** | 每周可获取的经验值上限 | `4000` |
| **singleExp** | 每次通关可获得的经验值(不可为零) | `270` |
---

View File

@@ -119,10 +119,11 @@ async function findAndClickWhiteSpaceNext() {
// 查找要删除的存档
async function findSaveInList(keyword) {
const maxScroll = 15;
const keywords = keyword.trim().split(" ");
for (let i = 0; i < maxScroll; i++) {
const region = await findText(
keyword,
keywords,
200, 250, 1500, 700,
3
);

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "千星奇域每周成就经验刷取",
"version": "3.0",
"version": "3.1",
"bgi_version": "0.57.0",
"description": "无需自己找图可用于利用成就高经验值刷取经验默认配置每周刷满需要22分钟秒刷图仅需9分钟",
"authors": [