Skip to content

Commit

Permalink
Gleam任务识别优化;一处文本优化
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Feb 13, 2022
1 parent 125a327 commit 37c92ce
Show file tree
Hide file tree
Showing 13 changed files with 42 additions and 28 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
uses: softprops/action-gh-release@v1
with:
prerelease: false
tag_name: v4.2.4
name: 4.2.4
tag_name: v4.2.5
name: 4.2.5
body: |-
- Sub入库功能优化
- 更新相关功能优化
- Gleam任务识别优化
- 一处文本优化
files: |-
dist/auto-task-v4-for-giveawaysu.user.js
dist/auto-task-v4.compatibility.user.js
Expand Down
4 changes: 2 additions & 2 deletions dist/auto-task-v4-for-giveawaysu.user.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/auto-task-v4.compatibility.user.js

Large diffs are not rendered by default.

6 changes: 4 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.2.4
// @version 4.2.5
// @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 @@ -1381,6 +1381,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
gettingTwitchChannelId: '正在获取Twitch频道Id',
twitterUser: '推特用户',
retweets: '转推',
gettingTwitterUserId: '正在获取推特用户Id',
followingTwitterUser: '正在关注推特用户',
unfollowingTwitterUser: '正在取关推特用户',
retweetting: '正在转推',
Expand Down Expand Up @@ -1641,6 +1642,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
gettingTwitchChannelId: 'Getting Twitch Channel Id',
twitterUser: 'Twitter User',
retweets: 'Retweet',
gettingTwitterUserId: 'Getting Twitter User Id',
followingTwitterUser: 'Following Twitter User',
unfollowingTwitterUser: 'Unfollowing Twitter User',
retweetting: 'Retweetting',
Expand Down Expand Up @@ -9658,7 +9660,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-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-shield') && taskText.includes('Check out')) {} else {
scripts_echoLog({}).warning(`${i18n('unKnownTaskType')}: ${taskText}`);
}
}
Expand Down
7 changes: 7 additions & 0 deletions doc/docs/logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ lang: zh-CN

## V4.2

### V4.2.5

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

- Gleam任务识别优化
- 一处文本优化

### V4.2.4

[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.2.4)
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "auto-task-v4",
"version": "4.2.4",
"version": "4.2.5",
"change": [
"Sub入库功能优化",
"更新相关功能优化"
"Gleam任务识别优化",
"一处文本优化"
],
"description": "赠Key站自动任务脚本",
"main": "package.json",
Expand Down
4 changes: 2 additions & 2 deletions page/dist/auto-task-v4-for-giveawaysu.user.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

6 changes: 4 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.2.4
// @version 4.2.5
// @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 @@ -1381,6 +1381,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
gettingTwitchChannelId: '正在获取Twitch频道Id',
twitterUser: '推特用户',
retweets: '转推',
gettingTwitterUserId: '正在获取推特用户Id',
followingTwitterUser: '正在关注推特用户',
unfollowingTwitterUser: '正在取关推特用户',
retweetting: '正在转推',
Expand Down Expand Up @@ -1641,6 +1642,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
gettingTwitchChannelId: 'Getting Twitch Channel Id',
twitterUser: 'Twitter User',
retweets: 'Retweet',
gettingTwitterUserId: 'Getting Twitter User Id',
followingTwitterUser: 'Following Twitter User',
unfollowingTwitterUser: 'Unfollowing Twitter User',
retweetting: 'Retweetting',
Expand Down Expand Up @@ -9658,7 +9660,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-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-shield') && taskText.includes('Check out')) {} else {
scripts_echoLog({}).warning(`${i18n('unKnownTaskType')}: ${taskText}`);
}
}
Expand Down
6 changes: 3 additions & 3 deletions page/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "auto-task-v4",
"version": "4.2.4",
"version": "4.2.5",
"change": [
"Sub入库功能优化",
"更新相关功能优化"
"Gleam任务识别优化",
"一处文本优化"
],
"description": "赠Key站自动任务脚本",
"main": "package.json",
Expand Down
5 changes: 3 additions & 2 deletions src/locales/en-US.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2021-12-30 17:08:27
* @LastEditTime : 2022-02-12 18:14:29
* @LastEditTime : 2022-02-13 22:18:23
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/locales/en-US.js
* @Description : i18n英文
Expand Down Expand Up @@ -174,7 +174,7 @@ const data = {
noRemoteData: 'No data remotely',
errorRemoteDataFormat: 'Remote data has wrong format',
updateHistory: '<a class="high-light" href="https://auto-task-doc.js.org/logs/" target="_blank">Click here</a>' +
' to view the historical update record.',
' to view the historical update record.',

// Steam
groups: 'Group',
Expand Down Expand Up @@ -262,6 +262,7 @@ const data = {
// Twitter
twitterUser: 'Twitter User',
retweets: 'Retweet',
gettingTwitterUserId: 'Getting Twitter User Id',
followingTwitterUser: 'Following Twitter User',
unfollowingTwitterUser: 'Unfollowing Twitter User',
retweetting: 'Retweetting',
Expand Down
3 changes: 2 additions & 1 deletion src/locales/zh-CN.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2021-11-20 19:38:41
* @LastEditTime : 2022-02-12 18:14:21
* @LastEditTime : 2022-02-13 22:18:01
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/locales/zh-CN.js
* @Description : i18n中文
Expand Down Expand Up @@ -244,6 +244,7 @@ const data = {
// Twitter
twitterUser: '推特用户',
retweets: '转推',
gettingTwitterUserId: '正在获取推特用户Id',
followingTwitterUser: '正在关注推特用户',
unfollowingTwitterUser: '正在取关推特用户',
retweetting: '正在转推',
Expand Down
3 changes: 2 additions & 1 deletion src/scripts/website/Gleam.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2021-11-19 14:42:43
* @LastEditTime : 2022-02-06 11:38:31
* @LastEditTime : 2022-02-13 22:19:03
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/scripts/website/Gleam.ts
* @Description : https://gleam.io
Expand Down Expand Up @@ -228,6 +228,7 @@ class Gleam extends Website {
} 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'))
Expand Down

1 comment on commit 37c92ce

@vercel
Copy link

@vercel vercel bot commented on 37c92ce Feb 13, 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.