Skip to content

Commit 1700445

Browse files
committed
优化:Gleam人机验证完成后重新验证所有未完成的任务
1 parent a9114b5 commit 1700445

24 files changed

Lines changed: 130 additions & 61 deletions

.github/workflows/Release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
uses: softprops/action-gh-release@v1
2323
with:
2424
prerelease: false
25-
tag_name: v5.0.2
26-
name: 5.0.2
27-
body: '- 优化:Discord人机验证提示'
25+
tag_name: v5.0.3
26+
name: 5.0.3
27+
body: '- 优化:Gleam人机验证完成后重新验证所有未完成的任务'
2828
files: |-
2929
dist/auto-task.user.js
3030
dist/auto-task.min.user.js

dist/auto-task.all.user.js

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task.compatibility.all.user.js

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task.compatibility.user.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task.compatibility
33
// @namespace auto-task.compatibility
4-
// @version 5.0.2
4+
// @version 5.0.3
55
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
66
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
77
// @author HCLonely
@@ -14296,14 +14296,16 @@ if (missingDependencies.length > 0) {
1429614296
await delay(3e3);
1429714297
logStatus.warning(I18n('retry'));
1429814298
await this.#checkCampaign();
14299-
return;
14299+
return true;
1430014300
}
1430114301
logStatus?.success();
14302+
return false;
1430214303
} catch (error) {
1430314304
debug('检测人机验证失败', {
1430414305
error: error
1430514306
});
1430614307
throwError(error, 'Gleam.checkCampaign');
14308+
return false;
1430714309
}
1430814310
}
1430914311
async verifyTask() {
@@ -14315,7 +14317,10 @@ if (missingDependencies.length > 0) {
1431514317
const tasks = $('.entry-content .entry-method');
1431614318
unsafeWindow._OxA = '_OxA';
1431714319
for (const task of tasks) {
14318-
await this.#checkCampaign();
14320+
const campaign = await this.#checkCampaign();
14321+
if (campaign) {
14322+
return this.verifyTask();
14323+
}
1431914324
const $task = $(task);
1432014325
if ($task.find('i.fa-check').length > 0) {
1432114326
debug('跳过已完成的任务');

dist/auto-task.min.all.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task.min.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task.user.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task
33
// @namespace auto-task
4-
// @version 5.0.2
4+
// @version 5.0.3
55
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
66
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
77
// @author HCLonely
@@ -14207,14 +14207,16 @@ if (missingDependencies.length > 0) {
1420714207
await delay(3e3);
1420814208
logStatus.warning(I18n('retry'));
1420914209
await this.#checkCampaign();
14210-
return;
14210+
return true;
1421114211
}
1421214212
logStatus?.success();
14213+
return false;
1421314214
} catch (error) {
1421414215
debug('检测人机验证失败', {
1421514216
error: error
1421614217
});
1421714218
throwError(error, 'Gleam.checkCampaign');
14219+
return false;
1421814220
}
1421914221
}
1422014222
async verifyTask() {
@@ -14226,7 +14228,10 @@ if (missingDependencies.length > 0) {
1422614228
const tasks = $('.entry-content .entry-method');
1422714229
unsafeWindow._OxA = '_OxA';
1422814230
for (const task of tasks) {
14229-
await this.#checkCampaign();
14231+
const campaign = await this.#checkCampaign();
14232+
if (campaign) {
14233+
return this.verifyTask();
14234+
}
1423014235
const $task = $(task);
1423114236
if ($task.find('i.fa-check').length > 0) {
1423214237
debug('跳过已完成的任务');

doc/docs/.vuepress/public/dist/auto-task.all.user.js

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/docs/.vuepress/public/dist/auto-task.compatibility.all.user.js

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/docs/.vuepress/public/dist/auto-task.compatibility.user.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task.compatibility
33
// @namespace auto-task.compatibility
4-
// @version 5.0.2
4+
// @version 5.0.3
55
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
66
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
77
// @author HCLonely
@@ -14296,14 +14296,16 @@ if (missingDependencies.length > 0) {
1429614296
await delay(3e3);
1429714297
logStatus.warning(I18n('retry'));
1429814298
await this.#checkCampaign();
14299-
return;
14299+
return true;
1430014300
}
1430114301
logStatus?.success();
14302+
return false;
1430214303
} catch (error) {
1430314304
debug('检测人机验证失败', {
1430414305
error: error
1430514306
});
1430614307
throwError(error, 'Gleam.checkCampaign');
14308+
return false;
1430714309
}
1430814310
}
1430914311
async verifyTask() {
@@ -14315,7 +14317,10 @@ if (missingDependencies.length > 0) {
1431514317
const tasks = $('.entry-content .entry-method');
1431614318
unsafeWindow._OxA = '_OxA';
1431714319
for (const task of tasks) {
14318-
await this.#checkCampaign();
14320+
const campaign = await this.#checkCampaign();
14321+
if (campaign) {
14322+
return this.verifyTask();
14323+
}
1431914324
const $task = $(task);
1432014325
if ($task.find('i.fa-check').length > 0) {
1432114326
debug('跳过已完成的任务');

0 commit comments

Comments
 (0)