Skip to content

Commit

Permalink
Keyhub反屏蔽ADB;Keyhub任务识别优化
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Dec 10, 2022
1 parent 7078a09 commit 7b528f9
Show file tree
Hide file tree
Showing 19 changed files with 81 additions and 50 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Release
paths:
- src/**
- .github/workflows/Release.yml
workflow_dispatch: {}
workflow_dispatch: ''
jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -22,9 +22,11 @@ jobs:
uses: softprops/action-gh-release@v1
with:
prerelease: false
tag_name: v4.2.22
name: 4.2.22
body: '- Freeanywhere新增剩余Key检测功能'
tag_name: v4.2.23
name: 4.2.23
body: |-
- Keyhub反屏蔽ADB
- Keyhub任务识别优化
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: 6 additions & 2 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.22
// @version 4.2.23
// @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 @@ -8104,7 +8104,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
this.undoneTasks.extra.videoTasks.push(taskData);
}
}
} else if (/^https?:\/\/www\.instagram\.com\/.*/.test(link) || /^https?:\/\/twitter\.com\/.*/.test(link) || /^https?:\/\/www\.twitch\.tv\/.*/.test(link) || /^https?:\/\/www\.facebook\.com\/.*/.test(link) || /^https?:\/\/www\.youtube\.com\/.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/developer\//.test(link) || /^https?:\/\/.*?\.itch\.io\/.*/.test(link) || /^https?:\/\/.*?\.itch\.io\/.*/.test(link) || /^https?:\/\/key-hub\.eu.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/app\/.*/.test(link)) {} else {
} else if (/^https?:\/\/www\.instagram\.com\/.*/.test(link) || /^https?:\/\/twitter\.com\/.*/.test(link) || /^https?:\/\/www\.twitch\.tv\/.*/.test(link) || /^https?:\/\/www\.facebook\.com\/.*/.test(link) || /^https?:\/\/www\.youtube\.com\/.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/developer\//.test(link) || /^https?:\/\/.*?\.itch\.io\/.*/.test(link) || /^https?:\/\/key-hub\.eu.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/app\/.*/.test(link) || /^https?:\/\/qr\.streamelements\.com\/.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/news\/app\/.*/.test(link)) {} else {
scripts_echoLog({}).warning(`${i18n('unKnownTaskType')}: ${taskDes}(${link})`);
}
}
Expand Down Expand Up @@ -11465,6 +11465,10 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
} else if (window.location.hostname === 'opquests.com') {
loadScript();
} else {
if (window.location.hostname === 'key-hub.eu') {
unsafeWindow.keyhubtracker = 1;
unsafeWindow.gaData = {};
}
$(loadScript);
}
}();
Expand Down
12 changes: 6 additions & 6 deletions dist/auto-task-v4.compatibility.all.user.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

8 changes: 6 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.22
// @version 4.2.23
// @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 @@ -8085,7 +8085,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
this.undoneTasks.extra.videoTasks.push(taskData);
}
}
} else if (/^https?:\/\/www\.instagram\.com\/.*/.test(link) || /^https?:\/\/twitter\.com\/.*/.test(link) || /^https?:\/\/www\.twitch\.tv\/.*/.test(link) || /^https?:\/\/www\.facebook\.com\/.*/.test(link) || /^https?:\/\/www\.youtube\.com\/.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/developer\//.test(link) || /^https?:\/\/.*?\.itch\.io\/.*/.test(link) || /^https?:\/\/.*?\.itch\.io\/.*/.test(link) || /^https?:\/\/key-hub\.eu.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/app\/.*/.test(link)) {} else {
} else if (/^https?:\/\/www\.instagram\.com\/.*/.test(link) || /^https?:\/\/twitter\.com\/.*/.test(link) || /^https?:\/\/www\.twitch\.tv\/.*/.test(link) || /^https?:\/\/www\.facebook\.com\/.*/.test(link) || /^https?:\/\/www\.youtube\.com\/.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/developer\//.test(link) || /^https?:\/\/.*?\.itch\.io\/.*/.test(link) || /^https?:\/\/key-hub\.eu.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/app\/.*/.test(link) || /^https?:\/\/qr\.streamelements\.com\/.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/news\/app\/.*/.test(link)) {} else {
scripts_echoLog({}).warning(`${i18n('unKnownTaskType')}: ${taskDes}(${link})`);
}
}
Expand Down Expand Up @@ -11446,6 +11446,10 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
} else if (window.location.hostname === 'opquests.com') {
loadScript();
} else {
if (window.location.hostname === 'key-hub.eu') {
unsafeWindow.keyhubtracker = 1;
unsafeWindow.gaData = {};
}
$(loadScript);
}
}();
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.23

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

- key-hub.eu反屏蔽ADB

### V4.2.22

[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.2.22)
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "auto-task-v4",
"version": "4.2.22",
"version": "4.2.23",
"change": [
"Freeanywhere新增剩余Key检测功能"
"Keyhub反屏蔽ADB",
"Keyhub任务识别优化"
],
"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: 6 additions & 2 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.22
// @version 4.2.23
// @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 @@ -8104,7 +8104,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
this.undoneTasks.extra.videoTasks.push(taskData);
}
}
} else if (/^https?:\/\/www\.instagram\.com\/.*/.test(link) || /^https?:\/\/twitter\.com\/.*/.test(link) || /^https?:\/\/www\.twitch\.tv\/.*/.test(link) || /^https?:\/\/www\.facebook\.com\/.*/.test(link) || /^https?:\/\/www\.youtube\.com\/.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/developer\//.test(link) || /^https?:\/\/.*?\.itch\.io\/.*/.test(link) || /^https?:\/\/.*?\.itch\.io\/.*/.test(link) || /^https?:\/\/key-hub\.eu.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/app\/.*/.test(link)) {} else {
} else if (/^https?:\/\/www\.instagram\.com\/.*/.test(link) || /^https?:\/\/twitter\.com\/.*/.test(link) || /^https?:\/\/www\.twitch\.tv\/.*/.test(link) || /^https?:\/\/www\.facebook\.com\/.*/.test(link) || /^https?:\/\/www\.youtube\.com\/.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/developer\//.test(link) || /^https?:\/\/.*?\.itch\.io\/.*/.test(link) || /^https?:\/\/key-hub\.eu.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/app\/.*/.test(link) || /^https?:\/\/qr\.streamelements\.com\/.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/news\/app\/.*/.test(link)) {} else {
scripts_echoLog({}).warning(`${i18n('unKnownTaskType')}: ${taskDes}(${link})`);
}
}
Expand Down Expand Up @@ -11465,6 +11465,10 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
} else if (window.location.hostname === 'opquests.com') {
loadScript();
} else {
if (window.location.hostname === 'key-hub.eu') {
unsafeWindow.keyhubtracker = 1;
unsafeWindow.gaData = {};
}
$(loadScript);
}
}();
Expand Down
12 changes: 6 additions & 6 deletions page/dist/auto-task-v4.compatibility.all.user.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

8 changes: 6 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.22
// @version 4.2.23
// @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 @@ -8085,7 +8085,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
this.undoneTasks.extra.videoTasks.push(taskData);
}
}
} else if (/^https?:\/\/www\.instagram\.com\/.*/.test(link) || /^https?:\/\/twitter\.com\/.*/.test(link) || /^https?:\/\/www\.twitch\.tv\/.*/.test(link) || /^https?:\/\/www\.facebook\.com\/.*/.test(link) || /^https?:\/\/www\.youtube\.com\/.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/developer\//.test(link) || /^https?:\/\/.*?\.itch\.io\/.*/.test(link) || /^https?:\/\/.*?\.itch\.io\/.*/.test(link) || /^https?:\/\/key-hub\.eu.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/app\/.*/.test(link)) {} else {
} else if (/^https?:\/\/www\.instagram\.com\/.*/.test(link) || /^https?:\/\/twitter\.com\/.*/.test(link) || /^https?:\/\/www\.twitch\.tv\/.*/.test(link) || /^https?:\/\/www\.facebook\.com\/.*/.test(link) || /^https?:\/\/www\.youtube\.com\/.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/developer\//.test(link) || /^https?:\/\/.*?\.itch\.io\/.*/.test(link) || /^https?:\/\/key-hub\.eu.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/app\/.*/.test(link) || /^https?:\/\/qr\.streamelements\.com\/.*/.test(link) || /^https?:\/\/store\.steampowered\.com\/news\/app\/.*/.test(link)) {} else {
scripts_echoLog({}).warning(`${i18n('unKnownTaskType')}: ${taskDes}(${link})`);
}
}
Expand Down Expand Up @@ -11446,6 +11446,10 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
} else if (window.location.hostname === 'opquests.com') {
loadScript();
} else {
if (window.location.hostname === 'key-hub.eu') {
unsafeWindow.keyhubtracker = 1;
unsafeWindow.gaData = {};
}
$(loadScript);
}
}();
Expand Down
5 changes: 3 additions & 2 deletions page/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "auto-task-v4",
"version": "4.2.22",
"version": "4.2.23",
"change": [
"Freeanywhere新增剩余Key检测功能"
"Keyhub反屏蔽ADB",
"Keyhub任务识别优化"
],
"description": "赠Key站自动任务脚本",
"main": "package.json",
Expand Down
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2021-10-26 15:44:54
* @LastEditTime : 2022-10-07 10:18:58
* @LastEditTime : 2022-12-10 09:55:22
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/index.ts
* @Description : 入口文件
Expand Down Expand Up @@ -232,5 +232,9 @@ if (window.location.hostname === 'discord.com') {
} else if (window.location.hostname === 'opquests.com') {
loadScript();
} else {
if (window.location.hostname === 'key-hub.eu') {
unsafeWindow.keyhubtracker = 1;
unsafeWindow.gaData = {};
}
$(loadScript);
}
7 changes: 4 additions & 3 deletions src/scripts/website/keyhub.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2021-11-11 14:02:46
* @LastEditTime : 2022-08-17 16:28:50
* @LastEditTime : 2022-12-10 10:07:31
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/scripts/website/keyhub.ts
* @Description : https://key-hub.eu/
Expand Down Expand Up @@ -131,9 +131,10 @@ class Keyhub extends Website {
/^https?:\/\/www\.youtube\.com\/.*/.test(link) ||
/^https?:\/\/store\.steampowered\.com\/developer\//.test(link) ||
/^https?:\/\/.*?\.itch\.io\/.*/.test(link) ||
/^https?:\/\/.*?\.itch\.io\/.*/.test(link) ||
/^https?:\/\/key-hub\.eu.*/.test(link) ||
/^https?:\/\/store\.steampowered\.com\/app\/.*/.test(link)
/^https?:\/\/store\.steampowered\.com\/app\/.*/.test(link) ||
/^https?:\/\/qr\.streamelements\.com\/.*/.test(link) ||
/^https?:\/\/store\.steampowered\.com\/news\/app\/.*/.test(link)
) {
// skip
} else {
Expand Down

1 comment on commit 7b528f9

@vercel
Copy link

@vercel vercel bot commented on 7b528f9 Dec 10, 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.