Skip to content

Commit

Permalink
Gleam任务识别优化
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Jul 29, 2022
1 parent f14a182 commit 28edbb1
Show file tree
Hide file tree
Showing 18 changed files with 47 additions and 41 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
uses: softprops/action-gh-release@v1
with:
prerelease: false
tag_name: v4.2.17
name: 4.2.17
body: '- 修复Givee无法识别Steam加组任务的BUG'
tag_name: v4.2.18
name: 4.2.18
body: '- Gleam任务识别优化'
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.

8 changes: 4 additions & 4 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.2.17
// @version 4.2.18
// @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 @@ -9716,7 +9716,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
this.undoneTasks.steam.curatorLinks.push(link);
}
}
} else if (socialIcon.hasClass('fa-shield') && taskText.includes('earn.vloot.io') || socialIcon.hasClass('fa-tiktok')) {
} else if (socialIcon.hasClass('fa-shield') && taskText.includes('vloot.io') || socialIcon.hasClass('fa-tiktok')) {
const continueBtn = expandInfo.find('span:contains(Continue),button:contains(Continue)');
for (const button of continueBtn) {
button.click();
Expand All @@ -9730,7 +9730,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
await delay(500);
expandInfo.find('input').val(this.options.gameroundUsername);
}
} else if (socialIcon.hasClass('fa-bullhorn') && taskText.includes('Complete')) {
} else if (socialIcon.hasClass('fa-bullhorn') && /Complete/gi.test(taskText)) {
if (action !== 'do') {
continue;
}
Expand All @@ -9743,7 +9743,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
continue;
}
this.undoneTasks.extra.gleam.push(gleamLink);
} 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-shield') && taskText.includes('Check out')) {} else {
} 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-envelope') || socialIcon.hasClass('fa-shield') && taskText.includes('Check out')) {} else {
scripts_echoLog({}).warning(`${i18n('unKnownTaskType')}: ${taskText}`);
}
}
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.

8 changes: 4 additions & 4 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.2.17
// @version 4.2.18
// @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 @@ -9697,7 +9697,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
this.undoneTasks.steam.curatorLinks.push(link);
}
}
} else if (socialIcon.hasClass('fa-shield') && taskText.includes('earn.vloot.io') || socialIcon.hasClass('fa-tiktok')) {
} else if (socialIcon.hasClass('fa-shield') && taskText.includes('vloot.io') || socialIcon.hasClass('fa-tiktok')) {
const continueBtn = expandInfo.find('span:contains(Continue),button:contains(Continue)');
for (const button of continueBtn) {
button.click();
Expand All @@ -9711,7 +9711,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
await delay(500);
expandInfo.find('input').val(this.options.gameroundUsername);
}
} else if (socialIcon.hasClass('fa-bullhorn') && taskText.includes('Complete')) {
} else if (socialIcon.hasClass('fa-bullhorn') && /Complete/gi.test(taskText)) {
if (action !== 'do') {
continue;
}
Expand All @@ -9724,7 +9724,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
continue;
}
this.undoneTasks.extra.gleam.push(gleamLink);
} 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-shield') && taskText.includes('Check out')) {} else {
} 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-envelope') || socialIcon.hasClass('fa-shield') && taskText.includes('Check out')) {} else {
scripts_echoLog({}).warning(`${i18n('unKnownTaskType')}: ${taskText}`);
}
}
Expand Down
4 changes: 2 additions & 2 deletions doc/docs/.vuepress/public/report.html

Large diffs are not rendered by default.

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.2

### V4.2.18

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

- Gleam任务识别优化

### V4.2.17

[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.2.17)
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.2.17",
"version": "4.2.18",
"change": [
"修复Givee无法识别Steam加组任务的BUG"
"Gleam任务识别优化"
],
"description": "赠Key站自动任务脚本",
"main": "package.json",
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.

8 changes: 4 additions & 4 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.2.17
// @version 4.2.18
// @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 @@ -9716,7 +9716,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
this.undoneTasks.steam.curatorLinks.push(link);
}
}
} else if (socialIcon.hasClass('fa-shield') && taskText.includes('earn.vloot.io') || socialIcon.hasClass('fa-tiktok')) {
} else if (socialIcon.hasClass('fa-shield') && taskText.includes('vloot.io') || socialIcon.hasClass('fa-tiktok')) {
const continueBtn = expandInfo.find('span:contains(Continue),button:contains(Continue)');
for (const button of continueBtn) {
button.click();
Expand All @@ -9730,7 +9730,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
await delay(500);
expandInfo.find('input').val(this.options.gameroundUsername);
}
} else if (socialIcon.hasClass('fa-bullhorn') && taskText.includes('Complete')) {
} else if (socialIcon.hasClass('fa-bullhorn') && /Complete/gi.test(taskText)) {
if (action !== 'do') {
continue;
}
Expand All @@ -9743,7 +9743,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
continue;
}
this.undoneTasks.extra.gleam.push(gleamLink);
} 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-shield') && taskText.includes('Check out')) {} else {
} 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-envelope') || socialIcon.hasClass('fa-shield') && taskText.includes('Check out')) {} else {
scripts_echoLog({}).warning(`${i18n('unKnownTaskType')}: ${taskText}`);
}
}
Expand Down
Loading

1 comment on commit 28edbb1

@vercel
Copy link

@vercel vercel bot commented on 28edbb1 Jul 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.