Skip to content

Commit

Permalink
修复: Opquests识别不到按钮导致验证停止(#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Jan 6, 2025
1 parent 0a66d8e commit 34230f7
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 28 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
uses: softprops/action-gh-release@v1
with:
prerelease: false
tag_name: v4.5.7
name: 4.5.7
body: '- 修复: Steam任务完成后的换区逻辑(#41)'
tag_name: v4.5.8
name: 4.5.8
body: '- 修复: Opquests识别不到按钮导致验证停止(#42)'
files: |-
dist/auto-task-v4-for-giveawaysu.user.js
dist/auto-task-v4.compatibility.user.js
Expand Down
2 changes: 1 addition & 1 deletion dist/auto-task-v4-for-giveawaysu.all.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/auto-task-v4-for-giveawaysu.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/auto-task-v4.all.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name auto-task-v4
// @namespace auto-task-v4
// @version 4.5.7
// @version 4.5.8
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
// @author HCLonely
Expand Down Expand Up @@ -9184,7 +9184,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
await this.#confirm();
const taskId = tasks.pop();
GM_setValue('opquestsVerifyTasks', tasks);
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0].click();
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0]?.click();
return true;
} catch (error) {
throwError(error, 'Opquests.verifyTask');
Expand Down
4 changes: 2 additions & 2 deletions dist/auto-task-v4.compatibility.all.user.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/auto-task-v4.compatibility.user.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/auto-task-v4.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name auto-task-v4
// @namespace auto-task-v4
// @version 4.5.7
// @version 4.5.8
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
// @author HCLonely
Expand Down Expand Up @@ -9165,7 +9165,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
await this.#confirm();
const taskId = tasks.pop();
GM_setValue('opquestsVerifyTasks', tasks);
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0].click();
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0]?.click();
return true;
} catch (error) {
throwError(error, 'Opquests.verifyTask');
Expand Down
6 changes: 6 additions & 0 deletions doc/docs/logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ lang: zh-CN

## V4.5

### V4.5.8

[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.5.8)

- 修复: Opquests识别不到按钮导致验证停止([#42](https://github.com/HCLonely/auto-task-v4/issues/42))

### V4.5.7

[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.5.7)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "auto-task-v4",
"version": "4.5.7",
"version": "4.5.8",
"change": [
"修复: Steam任务完成后的换区逻辑(#41)"
"修复: Opquests识别不到按钮导致验证停止(#42)"
],
"description": "赠Key站自动任务脚本",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion page/dist/auto-task-v4-for-giveawaysu.all.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion page/dist/auto-task-v4-for-giveawaysu.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions page/dist/auto-task-v4.all.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name auto-task-v4
// @namespace auto-task-v4
// @version 4.5.7
// @version 4.5.8
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
// @author HCLonely
Expand Down Expand Up @@ -9184,7 +9184,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
await this.#confirm();
const taskId = tasks.pop();
GM_setValue('opquestsVerifyTasks', tasks);
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0].click();
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0]?.click();
return true;
} catch (error) {
throwError(error, 'Opquests.verifyTask');
Expand Down
4 changes: 2 additions & 2 deletions page/dist/auto-task-v4.compatibility.all.user.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions page/dist/auto-task-v4.compatibility.user.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions page/dist/auto-task-v4.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name auto-task-v4
// @namespace auto-task-v4
// @version 4.5.7
// @version 4.5.8
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
// @author HCLonely
Expand Down Expand Up @@ -9165,7 +9165,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
await this.#confirm();
const taskId = tasks.pop();
GM_setValue('opquestsVerifyTasks', tasks);
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0].click();
$(`#task_id[value="${taskId}"]`).parent().children('button[type="submit"]')[0]?.click();
return true;
} catch (error) {
throwError(error, 'Opquests.verifyTask');
Expand Down
4 changes: 2 additions & 2 deletions page/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "auto-task-v4",
"version": "4.5.7",
"version": "4.5.8",
"change": [
"修复: Steam任务完成后的换区逻辑(#41)"
"修复: Opquests识别不到按钮导致验证停止(#42)"
],
"description": "赠Key站自动任务脚本",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/website/Opquests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class Opquests extends Website {
const taskId = tasks.pop();
GM_setValue('opquestsVerifyTasks', tasks);
$(`#task_id[value="${taskId}"]`).parent()
.children('button[type="submit"]')[0].click();
.children('button[type="submit"]')[0]?.click();
return true;
} catch (error) {
throwError(error as Error, 'Opquests.verifyTask');
Expand Down

0 comments on commit 34230f7

Please sign in to comment.