Skip to content

Commit

Permalink
1. Keyhub任务识别优化;
Browse files Browse the repository at this point in the history
2. Keylol新增入库免费游戏功能;
3. Steam凭证更新功能优化;
4. 修复已知BUG
  • Loading branch information
HCLonely committed Jan 13, 2022
1 parent d7fe614 commit 25c3b7b
Show file tree
Hide file tree
Showing 33 changed files with 922 additions and 468 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"hclonely",
"keyboardjs",
"OSSAR",
"subid",
"topbottpm",
"uglifyjs",
"unretweet",
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

![Test](https://github.com/HCLonely/auto-task/workflows/Test/badge.svg)
![OSSAR](https://github.com/HCLonely/auto-task/workflows/OSSAR/badge.svg)
![License](https://img.shields.io/github/license/HCLonely/auto-task-v4?label=License)
![Release](https://img.shields.io/github/v/release/HCLonely/auto-task-v4?include_prereleases)

自动完成 Key 站任务。

Expand Down
14 changes: 7 additions & 7 deletions dist/auto-task-v4-for-giveawaysu.user.js

Large diffs are not rendered by default.

45 changes: 23 additions & 22 deletions dist/auto-task-v4.compatibility.user.js

Large diffs are not rendered by default.

439 changes: 286 additions & 153 deletions dist/auto-task-v4.user.js

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "auto-task-v4",
"version": "4.1.11-beta",
"version": "4.1.12-beta",
"change": [
"修复一处英文文本错误"
"Keyhub任务识别优化",
"Keylol新增入库免费游戏功能",
"Steam凭证更新功能优化",
"修复已知BUG"
],
"description": "赠Key站自动任务脚本",
"main": "package.json",
Expand Down
14 changes: 7 additions & 7 deletions page/dist/auto-task-v4-for-giveawaysu.user.js

Large diffs are not rendered by default.

45 changes: 23 additions & 22 deletions page/dist/auto-task-v4.compatibility.user.js

Large diffs are not rendered by default.

439 changes: 286 additions & 153 deletions page/dist/auto-task-v4.user.js

Large diffs are not rendered by default.

Binary file modified page/favicon.ico
Binary file not shown.
7 changes: 5 additions & 2 deletions page/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "auto-task-v4",
"version": "4.1.11-beta",
"version": "4.1.12-beta",
"change": [
"修复一处英文文本"
"Keyhub任务识别优化",
"Keylol新增入库免费游戏功能",
"Steam凭证更新功能优化",
"修复已知BUG"
],
"description": "赠Key站自动任务脚本",
"main": "package.json",
Expand Down
1 change: 1 addition & 0 deletions src/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// @updateURL __UPDATE_URL__
// @installURL __UPDATE_URL__
// @downloadURL __UPDATE_URL__
// @icon https://auto-task-v4.hclonely.com/favicon.ico

// @include *://freeanywhere.net/*
// @include *://giveaway.su/giveaway/view/*
Expand Down
5 changes: 4 additions & 1 deletion 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-01-11 16:09:55
* @LastEditTime : 2022-01-13 11:50:06
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/locales/en-US.js
* @Description : i18n英文
Expand Down Expand Up @@ -207,6 +207,9 @@ const data = {
gettingAreaInfo: 'Getting Steam area information...',
changeAreaNotice: 'Suspected of a locked zone game, try to change the zone to execute',
steamFinishNotice: 'Steam task completed, try to change the shopping cart area back to CN',
gettingSubid: 'Getting subid',
addingFreeLicense: 'Adding free license',
missParams: 'Missing parameters',

// Discord
servers: 'Server',
Expand Down
5 changes: 4 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-01-09 13:19:36
* @LastEditTime : 2022-01-13 11:49:47
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/locales/zh-CN.js
* @Description : i18n中文
Expand Down Expand Up @@ -191,6 +191,9 @@ const data = {
gettingAreaInfo: '正在获取Steam地区信息...',
changeAreaNotice: '疑似锁区游戏,尝试换区执行',
steamFinishNotice: 'Steam任务完成,尝试将购物车地区换回CN',
gettingSubid: '正在获取游戏subid',
addingFreeLicense: '正在入库',
missParams: '缺少参数',

// Discord
servers: '服务器',
Expand Down
4 changes: 3 additions & 1 deletion src/scripts/echoLog.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2021-10-26 15:03:26
* @LastEditTime : 2022-01-02 12:35:10
* @LastEditTime : 2022-01-13 11:55:00
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/scripts/echoLog.ts
* @Description :
Expand Down Expand Up @@ -42,6 +42,8 @@ const echoLog = ({ type, text, html, id }: { type?: string, text?: string, html?
case 'removingFromWishlist':
case 'followingGame':
case 'unfollowingGame':
case 'gettingSubid':
case 'addingFreeLicense':
ele = $(`<li>${__(type)}<a href="https://store.steampowered.com/app/${text}" target="_blank">${text}</a>...<font></font></li>`);
break;
case 'favoritingWorkshop':
Expand Down
8 changes: 4 additions & 4 deletions src/scripts/social/Discord.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2021-09-28 15:03:10
* @LastEditTime : 2022-01-08 17:02:01
* @LastEditTime : 2022-01-13 14:16:13
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/scripts/social/Discord.ts
* @Description : Discord 加入&移除服务器
Expand All @@ -15,11 +15,11 @@ import echoLog from '../echoLog';
import __ from '../tools/i18n';
import { globalOptions } from '../globalOptions';

const defaultTasks: discordTasks = { servers: [] };
const defaultTasks = JSON.stringify({ servers: [] });

class Discord extends Social {
tasks = { ...defaultTasks };
whiteList: discordTasks = GM_getValue<whiteList>('whiteList')?.discord || { ...defaultTasks };
tasks: discordTasks = JSON.parse(defaultTasks);
whiteList: discordTasks = GM_getValue<whiteList>('whiteList')?.discord || JSON.parse(defaultTasks);
#auth: auth = GM_getValue<auth>('discordAuth') || {};
#cache: cache = GM_getValue<cache>('discordCache') || {};
#initialized = false;
Expand Down
8 changes: 4 additions & 4 deletions src/scripts/social/Instagram.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2021-09-29 12:54:16
* @LastEditTime : 2022-01-02 12:37:25
* @LastEditTime : 2022-01-13 14:16:21
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/scripts/social/Instagram.ts
* @Description : Instagram 关注&取关用户
Expand All @@ -15,10 +15,10 @@ import { unique, delay } from '../tools/tools';
import __ from '../tools/i18n';
import { globalOptions } from '../globalOptions';

const defaultTasks: instagramTasks = { users: [] };
const defaultTasks = JSON.stringify({ users: [] });
class Instagram extends Social {
tasks = { ...defaultTasks };
whiteList: instagramTasks = GM_getValue<whiteList>('whiteList')?.instagram || { ...defaultTasks };
tasks: instagramTasks = JSON.parse(defaultTasks);
whiteList: instagramTasks = GM_getValue<whiteList>('whiteList')?.instagram || JSON.parse(defaultTasks);
#cache: cache = GM_getValue<cache>('instagramCache') || {};
#auth: auth = {};
#initialized = false;
Expand Down
8 changes: 4 additions & 4 deletions src/scripts/social/Reddit.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2021-09-30 09:43:32
* @LastEditTime : 2022-01-02 12:37:58
* @LastEditTime : 2022-01-13 14:16:28
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/scripts/social/Reddit.ts
* @Description : Reddit 订阅&取消订阅
Expand All @@ -15,10 +15,10 @@ import __ from '../tools/i18n';
import { unique, delay } from '../tools/tools';
import { globalOptions } from '../globalOptions';

const defaultTasks: redditTasks = { reddits: [] };
const defaultTasks = JSON.stringify({ reddits: [] });
class Reddit extends Social {
tasks = { ...defaultTasks };
whiteList: redditTasks = GM_getValue<whiteList>('whiteList')?.reddit || { ...defaultTasks };
tasks: redditTasks = JSON.parse(defaultTasks);
whiteList: redditTasks = GM_getValue<whiteList>('whiteList')?.reddit || JSON.parse(defaultTasks);
#auth!: auth;
#initialized = false;

Expand Down
3 changes: 2 additions & 1 deletion src/scripts/social/Steam.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2021-11-05 10:43:43
* @LastEditTime : 2022-01-02 11:25:06
* @LastEditTime : 2022-01-13 13:31:07
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/scripts/social/Steam.d.ts
*/
Expand Down Expand Up @@ -33,4 +33,5 @@ declare interface steamTasksParam {
workshopVotes?: Array<string>
curatorLikes?: Array<string>
announcements?: Array<string>
licenseLinks?: Array<string>
}
Loading

1 comment on commit 25c3b7b

@vercel
Copy link

@vercel vercel bot commented on 25c3b7b Jan 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.