Skip to content

Commit 584da46

Browse files
committed
"移除:Opquests验证任务功能(#17)"
1 parent 48aacd4 commit 584da46

18 files changed

+53
-57
lines changed

.github/workflows/Release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
uses: softprops/action-gh-release@v1
2222
with:
2323
prerelease: false
24-
tag_name: v4.3.2
25-
name: 4.3.2
26-
body: '- 修复:Steam社区凭证更新失败(#16)'
24+
tag_name: v4.3.3
25+
name: 4.3.3
26+
body: '- 移除:Opquests验证任务功能(#17)'
2727
files: |-
2828
dist/auto-task-v4-for-giveawaysu.user.js
2929
dist/auto-task-v4.compatibility.user.js

dist/auto-task-v4-for-giveawaysu.all.user.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task-v4-for-giveawaysu.user.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task-v4
33
// @namespace auto-task-v4
4-
// @version 4.3.2
4+
// @version 4.3.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
@@ -8835,7 +8835,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
88358835
undoneTasks = {
88368836
...Opquests_defaultTasks
88378837
};
8838-
buttons = [ 'doTask', 'verifyTask', 'getKey' ];
8838+
buttons = [ 'doTask', 'getKey' ];
88398839
static test() {
88408840
return window.location.host === 'opquests.com';
88418841
}
@@ -8923,12 +8923,10 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
89238923
title: $(ele).find('span.text-sm').text().trim()
89248924
}));
89258925
await this.#confirm();
8926-
const pro = [];
89278926
for (const task of tasks) {
8928-
pro.push(this.#verify(task));
8927+
await this.#verify(task);
89298928
await delay(1e3);
89308929
}
8931-
await Promise.all(pro);
89328930
scripts_echoLog({}).success(i18n('allTasksComplete'));
89338931
if (await this.getKey()) {
89348932
return true;
@@ -8992,7 +8990,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
89928990
headers: {
89938991
origin: 'https://opquests.com',
89948992
pragma: 'no-cache',
8995-
referer: window.location.href,
8993+
referer: `${window.location.href.split('?')[0]}?confirm=1`,
89968994
'content-type': 'application/x-www-form-urlencoded'
89978995
},
89988996
data: `_token=${task.token}&task_id=${task.taskId}`
@@ -9317,7 +9315,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
93179315
continue;
93189316
}
93199317
this.undoneTasks.extra.gleam.push(gleamLink);
9320-
} else if (socialIcon.hasClass('fa-question') || socialIcon.hasClass('fa-reddit') || socialIcon.hasClass('fa-instagram') || socialIcon.hasClass('fa-facebook-f') || socialIcon.hasClass('fa-telegram-plane') || socialIcon.hasClass('fa-telegram') || socialIcon.hasClass('fa-vk') || socialIcon.hasClass('fa-envelope') || socialIcon.hasClass('fa-gift') || socialIcon.hasClass('fa-square-up-right') || socialIcon.hasClass('fa-shield') && taskText.includes('one of our giveaways') || socialIcon.hasClass('fa-shield') && taskText.includes('Check out')) {} else {
9318+
} else if (socialIcon.hasClass('fa-question') || socialIcon.hasClass('fa-reddit') || socialIcon.hasClass('fa-instagram') || socialIcon.hasClass('fa-facebook-f') || socialIcon.hasClass('fa-telegram-plane') || socialIcon.hasClass('fa-telegram') || socialIcon.hasClass('fa-vk') || socialIcon.hasClass('fa-envelope') || socialIcon.hasClass('fa-gift') || socialIcon.hasClass('fa-square-up-right') || socialIcon.hasClass('fa-gamepad-modern') || socialIcon.hasClass('fa-shield') && taskText.includes('one of our giveaways') || socialIcon.hasClass('fa-shield') && taskText.includes('Check out')) {} else {
93219319
scripts_echoLog({}).warning(`${i18n('unKnownTaskType')}: ${taskText}`);
93229320
}
93239321
}

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

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

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

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

dist/auto-task-v4.user.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task-v4
33
// @namespace auto-task-v4
4-
// @version 4.3.2
4+
// @version 4.3.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
@@ -8816,7 +8816,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
88168816
undoneTasks = {
88178817
...Opquests_defaultTasks
88188818
};
8819-
buttons = [ 'doTask', 'verifyTask', 'getKey' ];
8819+
buttons = [ 'doTask', 'getKey' ];
88208820
static test() {
88218821
return window.location.host === 'opquests.com';
88228822
}
@@ -8904,12 +8904,10 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
89048904
title: $(ele).find('span.text-sm').text().trim()
89058905
}));
89068906
await this.#confirm();
8907-
const pro = [];
89088907
for (const task of tasks) {
8909-
pro.push(this.#verify(task));
8908+
await this.#verify(task);
89108909
await delay(1e3);
89118910
}
8912-
await Promise.all(pro);
89138911
scripts_echoLog({}).success(i18n('allTasksComplete'));
89148912
if (await this.getKey()) {
89158913
return true;
@@ -8973,7 +8971,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
89738971
headers: {
89748972
origin: 'https://opquests.com',
89758973
pragma: 'no-cache',
8976-
referer: window.location.href,
8974+
referer: `${window.location.href.split('?')[0]}?confirm=1`,
89778975
'content-type': 'application/x-www-form-urlencoded'
89788976
},
89798977
data: `_token=${task.token}&task_id=${task.taskId}`
@@ -9298,7 +9296,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
92989296
continue;
92999297
}
93009298
this.undoneTasks.extra.gleam.push(gleamLink);
9301-
} else if (socialIcon.hasClass('fa-question') || socialIcon.hasClass('fa-reddit') || socialIcon.hasClass('fa-instagram') || socialIcon.hasClass('fa-facebook-f') || socialIcon.hasClass('fa-telegram-plane') || socialIcon.hasClass('fa-telegram') || socialIcon.hasClass('fa-vk') || socialIcon.hasClass('fa-envelope') || socialIcon.hasClass('fa-gift') || socialIcon.hasClass('fa-square-up-right') || socialIcon.hasClass('fa-shield') && taskText.includes('one of our giveaways') || socialIcon.hasClass('fa-shield') && taskText.includes('Check out')) {} else {
9299+
} else if (socialIcon.hasClass('fa-question') || socialIcon.hasClass('fa-reddit') || socialIcon.hasClass('fa-instagram') || socialIcon.hasClass('fa-facebook-f') || socialIcon.hasClass('fa-telegram-plane') || socialIcon.hasClass('fa-telegram') || socialIcon.hasClass('fa-vk') || socialIcon.hasClass('fa-envelope') || socialIcon.hasClass('fa-gift') || socialIcon.hasClass('fa-square-up-right') || socialIcon.hasClass('fa-gamepad-modern') || socialIcon.hasClass('fa-shield') && taskText.includes('one of our giveaways') || socialIcon.hasClass('fa-shield') && taskText.includes('Check out')) {} else {
93029300
scripts_echoLog({}).warning(`${i18n('unKnownTaskType')}: ${taskText}`);
93039301
}
93049302
}

doc/docs/logs/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ lang: zh-CN
55

66
## V4.3
77

8+
### V4.3.3
9+
10+
[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.3.3)
11+
12+
- 移除:Opquests验证任务功能([#17](https://github.com/HCLonely/auto-task-v4/issues/17))
13+
814
### V4.3.2
915

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "auto-task-v4",
3-
"version": "4.3.2",
3+
"version": "4.3.3",
44
"change": [
5-
"修复:Steam社区凭证更新失败(#16)"
5+
"移除:Opquests验证任务功能(#17)"
66
],
77
"description": "赠Key站自动任务脚本",
88
"main": "package.json",

page/dist/auto-task-v4-for-giveawaysu.all.user.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

page/dist/auto-task-v4-for-giveawaysu.user.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

page/dist/auto-task-v4.all.user.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task-v4
33
// @namespace auto-task-v4
4-
// @version 4.3.2
4+
// @version 4.3.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
@@ -8835,7 +8835,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
88358835
undoneTasks = {
88368836
...Opquests_defaultTasks
88378837
};
8838-
buttons = [ 'doTask', 'verifyTask', 'getKey' ];
8838+
buttons = [ 'doTask', 'getKey' ];
88398839
static test() {
88408840
return window.location.host === 'opquests.com';
88418841
}
@@ -8923,12 +8923,10 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
89238923
title: $(ele).find('span.text-sm').text().trim()
89248924
}));
89258925
await this.#confirm();
8926-
const pro = [];
89278926
for (const task of tasks) {
8928-
pro.push(this.#verify(task));
8927+
await this.#verify(task);
89298928
await delay(1e3);
89308929
}
8931-
await Promise.all(pro);
89328930
scripts_echoLog({}).success(i18n('allTasksComplete'));
89338931
if (await this.getKey()) {
89348932
return true;
@@ -8992,7 +8990,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
89928990
headers: {
89938991
origin: 'https://opquests.com',
89948992
pragma: 'no-cache',
8995-
referer: window.location.href,
8993+
referer: `${window.location.href.split('?')[0]}?confirm=1`,
89968994
'content-type': 'application/x-www-form-urlencoded'
89978995
},
89988996
data: `_token=${task.token}&task_id=${task.taskId}`
@@ -9317,7 +9315,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
93179315
continue;
93189316
}
93199317
this.undoneTasks.extra.gleam.push(gleamLink);
9320-
} else if (socialIcon.hasClass('fa-question') || socialIcon.hasClass('fa-reddit') || socialIcon.hasClass('fa-instagram') || socialIcon.hasClass('fa-facebook-f') || socialIcon.hasClass('fa-telegram-plane') || socialIcon.hasClass('fa-telegram') || socialIcon.hasClass('fa-vk') || socialIcon.hasClass('fa-envelope') || socialIcon.hasClass('fa-gift') || socialIcon.hasClass('fa-square-up-right') || socialIcon.hasClass('fa-shield') && taskText.includes('one of our giveaways') || socialIcon.hasClass('fa-shield') && taskText.includes('Check out')) {} else {
9318+
} else if (socialIcon.hasClass('fa-question') || socialIcon.hasClass('fa-reddit') || socialIcon.hasClass('fa-instagram') || socialIcon.hasClass('fa-facebook-f') || socialIcon.hasClass('fa-telegram-plane') || socialIcon.hasClass('fa-telegram') || socialIcon.hasClass('fa-vk') || socialIcon.hasClass('fa-envelope') || socialIcon.hasClass('fa-gift') || socialIcon.hasClass('fa-square-up-right') || socialIcon.hasClass('fa-gamepad-modern') || socialIcon.hasClass('fa-shield') && taskText.includes('one of our giveaways') || socialIcon.hasClass('fa-shield') && taskText.includes('Check out')) {} else {
93219319
scripts_echoLog({}).warning(`${i18n('unKnownTaskType')}: ${taskText}`);
93229320
}
93239321
}

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

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

page/dist/auto-task-v4.compatibility.user.js

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

page/dist/auto-task-v4.user.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task-v4
33
// @namespace auto-task-v4
4-
// @version 4.3.2
4+
// @version 4.3.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
@@ -8816,7 +8816,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
88168816
undoneTasks = {
88178817
...Opquests_defaultTasks
88188818
};
8819-
buttons = [ 'doTask', 'verifyTask', 'getKey' ];
8819+
buttons = [ 'doTask', 'getKey' ];
88208820
static test() {
88218821
return window.location.host === 'opquests.com';
88228822
}
@@ -8904,12 +8904,10 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
89048904
title: $(ele).find('span.text-sm').text().trim()
89058905
}));
89068906
await this.#confirm();
8907-
const pro = [];
89088907
for (const task of tasks) {
8909-
pro.push(this.#verify(task));
8908+
await this.#verify(task);
89108909
await delay(1e3);
89118910
}
8912-
await Promise.all(pro);
89138911
scripts_echoLog({}).success(i18n('allTasksComplete'));
89148912
if (await this.getKey()) {
89158913
return true;
@@ -8973,7 +8971,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
89738971
headers: {
89748972
origin: 'https://opquests.com',
89758973
pragma: 'no-cache',
8976-
referer: window.location.href,
8974+
referer: `${window.location.href.split('?')[0]}?confirm=1`,
89778975
'content-type': 'application/x-www-form-urlencoded'
89788976
},
89798977
data: `_token=${task.token}&task_id=${task.taskId}`
@@ -9298,7 +9296,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
92989296
continue;
92999297
}
93009298
this.undoneTasks.extra.gleam.push(gleamLink);
9301-
} else if (socialIcon.hasClass('fa-question') || socialIcon.hasClass('fa-reddit') || socialIcon.hasClass('fa-instagram') || socialIcon.hasClass('fa-facebook-f') || socialIcon.hasClass('fa-telegram-plane') || socialIcon.hasClass('fa-telegram') || socialIcon.hasClass('fa-vk') || socialIcon.hasClass('fa-envelope') || socialIcon.hasClass('fa-gift') || socialIcon.hasClass('fa-square-up-right') || socialIcon.hasClass('fa-shield') && taskText.includes('one of our giveaways') || socialIcon.hasClass('fa-shield') && taskText.includes('Check out')) {} else {
9299+
} else if (socialIcon.hasClass('fa-question') || socialIcon.hasClass('fa-reddit') || socialIcon.hasClass('fa-instagram') || socialIcon.hasClass('fa-facebook-f') || socialIcon.hasClass('fa-telegram-plane') || socialIcon.hasClass('fa-telegram') || socialIcon.hasClass('fa-vk') || socialIcon.hasClass('fa-envelope') || socialIcon.hasClass('fa-gift') || socialIcon.hasClass('fa-square-up-right') || socialIcon.hasClass('fa-gamepad-modern') || socialIcon.hasClass('fa-shield') && taskText.includes('one of our giveaways') || socialIcon.hasClass('fa-shield') && taskText.includes('Check out')) {} else {
93029300
scripts_echoLog({}).warning(`${i18n('unKnownTaskType')}: ${taskText}`);
93039301
}
93049302
}

page/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "auto-task-v4",
3-
"version": "4.3.2",
3+
"version": "4.3.3",
44
"change": [
5-
"修复:Steam社区凭证更新失败(#16)"
5+
"移除:Opquests验证任务功能(#17)"
66
],
77
"description": "赠Key站自动任务脚本",
88
"main": "package.json",

src/scripts/website/Gleam.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ class Gleam extends Website {
241241
socialIcon.hasClass('fa-envelope') ||
242242
socialIcon.hasClass('fa-gift') ||
243243
socialIcon.hasClass('fa-square-up-right') ||
244+
socialIcon.hasClass('fa-gamepad-modern') ||
244245
(socialIcon.hasClass('fa-shield') && taskText.includes('one of our giveaways')) ||
245246
(socialIcon.hasClass('fa-shield') && taskText.includes('Check out'))
246247
) {
@@ -284,7 +285,7 @@ class Gleam extends Website {
284285
unsafeWindow._OxA = '_OxA';
285286
for (const task of tasks) {
286287
if ($('[campaign-key="campaign.key"]').length > 0) { // 检测人机验证
287-
return echoLog({ text: __('campaign') });;
288+
return echoLog({ text: __('campaign') });
288289
}
289290

290291
const $task = $(task);

src/scripts/website/Opquests.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class Opquests extends Website {
3232
undoneTasks: oqSocialTasks = { ...defaultTasks };
3333
buttons: Array<string> = [
3434
'doTask',
35-
'verifyTask',
3635
'getKey'
3736
];
3837

@@ -127,12 +126,10 @@ class Opquests extends Website {
127126
.trim() as string
128127
}));
129128
await this.#confirm();
130-
const pro = [];
131129
for (const task of tasks) {
132-
pro.push(this.#verify(task));
130+
await this.#verify(task);
133131
await delay(1000);
134132
}
135-
await Promise.all(pro);
136133
echoLog({}).success(__('allTasksComplete'));
137134
if (await this.getKey()) {
138135
return true;
@@ -184,7 +181,7 @@ class Opquests extends Website {
184181
headers: {
185182
origin: 'https://opquests.com',
186183
pragma: 'no-cache',
187-
referer: window.location.href,
184+
referer: `${window.location.href.split('?')[0]}?confirm=1`,
188185
'content-type': 'application/x-www-form-urlencoded'
189186
},
190187
data: `_token=${task.token}&task_id=${task.taskId}`

0 commit comments

Comments
 (0)