-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
13,327 additions
and
815 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
/* | ||
* @Author : HCLonely | ||
* @Date : 2022-01-03 14:18:53 | ||
* @LastEditTime : 2022-01-03 14:23:30 | ||
* @LastEditTime : 2022-01-16 15:53:19 | ||
* @LastEditors : HCLonely | ||
* @FilePath : /auto-task-new/copy.js | ||
* @Description : 复制文件到备用源网站 | ||
*/ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
const fs = require('fs-extra'); | ||
const chalk = require('chalk'); | ||
|
||
fs.copySync('./dist', './page/dist'); | ||
fs.copySync('./package.json', './page/package.json'); | ||
|
||
console.log('Copying files is complete!'); | ||
console.log(`Files copied ${chalk.green.bold('successfully')}!`); |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.1.12-beta | ||
// @version 4.1.13-beta | ||
// @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 | ||
|
@@ -44,6 +44,7 @@ | |
// @grant GM_info | ||
// @grant GM_openInTab | ||
// @grant GM_setClipboard | ||
// @grant GM_getResourceText | ||
// @grant unsafeWindow | ||
// @grant window.close | ||
// @grant window.localStorage | ||
|
@@ -85,11 +86,11 @@ | |
// @require https://cdn.jsdelivr.net/npm/[email protected]/dist/js.cookie.min.js | ||
// @require https://cdn.jsdelivr.net/npm/[email protected]/runtime.min.js | ||
// @require https://cdn.jsdelivr.net/npm/[email protected]/src/sha1.min.js | ||
// @require https://cdn.jsdelivr.net/npm/sweetalert2@11 | ||
// @require https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.js | ||
// @resource style https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.min.css | ||
// @require https://cdn.jsdelivr.net/npm/[email protected]/dist/keyboard.min.js | ||
// @require https://cdn.jsdelivr.net/npm/[email protected]/dayjs.min.js | ||
|
||
// @compatible Tampermonkey Only | ||
// @noframes | ||
// ==/UserScript== | ||
|
||
|
@@ -10462,6 +10463,7 @@ ${$.makeArray($('#auto-task-info>li')).map(element => element.innerText).join('\ | |
} | ||
}; | ||
const scripts_updateChecker = updateChecker; | ||
window.STYLE = GM_addStyle(auto_task.Z + GM_getResourceText('style')); | ||
if (window.location.hostname === 'discord.com') { | ||
var _window$localStorage, _window$localStorage$; | ||
const discordAuth = (_window$localStorage = window.localStorage) === null || _window$localStorage === void 0 ? void 0 : (_window$localStorage$ = _window$localStorage.getItem('token')) === null || _window$localStorage$ === void 0 ? void 0 : _window$localStorage$.replace(/^"|"$/g, ''); | ||
|
@@ -10604,7 +10606,6 @@ ${$.makeArray($('#auto-task-info>li')).map(element => element.innerText).join('\ | |
window.open('https://auto-task-v4.hclonely.com/setting.html', '_blank'); | ||
}); | ||
} | ||
GM_addStyle(auto_task.Z); | ||
console.log('%c%s', 'color:#1bbe1a', 'Auto Task脚本初始化完成!'); | ||
if (!GM_getValue('notice')) { | ||
var _echoLog$font; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* @Author : HCLonely | ||
* @Date : 2022-01-16 15:10:54 | ||
* @LastEditTime : 2022-01-16 15:53:44 | ||
* @LastEditors : HCLonely | ||
* @FilePath : /auto-task-new/doc-sync.js | ||
* @Description : 文档同步 | ||
*/ | ||
|
||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
const fs = require('fs-extra'); | ||
const chalk = require('chalk'); | ||
|
||
const currentContext = fs.readFileSync('./doc/docs/logs/README.md').toString(); | ||
const { version, change } = fs.readJSONSync('./package.json'); | ||
const bigVersion = version.replace(/\.[\d]+(-[\w]+)?$/, ''); | ||
|
||
if (currentContext.includes(`## V${version}`)) { | ||
return console.log(chalk.yellow('No new version!')); | ||
} | ||
|
||
if (currentContext.includes(`## V${bigVersion}`)) { | ||
fs.writeFileSync('./doc/docs/logs/README.md', currentContext.replace(`## V${bigVersion}`, `## V${bigVersion} | ||
### V${version} | ||
[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v${version}) | ||
- ${change.join('\n- ').replace(/\(#([\d]+?)\)/g, '([#$1](https://github.com/HCLonely/auto-task-v4/issues/$1))')}`)); | ||
} else { | ||
fs.writeFileSync('./doc/docs/logs/README.md', currentContext.replace(/---[\s]+?##/, `--- | ||
## V${bigVersion} | ||
### V${version} | ||
[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v${version}) | ||
- ${change.join('\n- ').replace(/\(#([\d]+?)\)/g, '([#$1](https://github.com/HCLonely/auto-task-v4/issues/$1))')} | ||
##`)); | ||
} | ||
|
||
console.log(`Document updated ${chalk.green.bold('successfully')}!`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
.history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
## [auto-task](https://github.com/HCLonely/auto-task-v4) 脚本的使用文档 | ||
## Documentation for the use of [auto-task](https://github.com/HCLonely/auto-task-v4) scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
module.exports = { | ||
locales: { | ||
'/': { | ||
lang: 'zh-CN', | ||
title: 'Auto Task', | ||
description: '自动完成赠key站任务' | ||
}, | ||
'/en/': { | ||
lang: 'en-US', | ||
title: 'Auto Task', | ||
description: 'Automatically complete giveaway tasks' | ||
} | ||
}, | ||
themeConfig: { | ||
sidebarDepth: 2, | ||
sidebar: 'auto', | ||
displayAllHeaders: true, | ||
lastUpdated: true, | ||
themeConfig: { | ||
nextLinks: false, | ||
prevLinks: false | ||
}, | ||
smoothScroll: true, | ||
repo: 'HCLonely/auto-task', | ||
repoLabel: 'Github', | ||
docsRepo: 'HCLonely/auto-task-doc', | ||
docsDir: 'docs', | ||
editLinks: true, | ||
activeHeaderLinks: true, | ||
locales: { | ||
'/': { | ||
label: '简体中文', | ||
selectText: 'Languages', | ||
ariaLabel: 'Languages', | ||
editLinkText: '在 GitHub 上编辑此页', | ||
lastUpdated: '上次更新', | ||
nav: [ | ||
{ text: '首页', link: '/' }, | ||
{ text: '指南', link: '/guide/' }, | ||
{ text: '常见问题', link: '/FAQ/' }, | ||
{ text: '反馈', link: '/feedback/' }, | ||
{ text: '参与开发', link: '/dev/' }, | ||
{ text: '更新日志', link: '/logs/' }, | ||
{ text: '其他脚本', link: '/other/' } | ||
] | ||
}, | ||
'/en/': { | ||
label: 'English', | ||
selectText: '更改语言', | ||
ariaLabel: '更改语言', | ||
editLinkText: 'Edit this page on GitHub', | ||
lastUpdated: 'Last Updated', | ||
nav: [ | ||
{ text: 'Home', link: '/en/' }, | ||
{ text: 'Guide', link: '/en/guide/' }, | ||
{ text: 'Q&A', link: '/en/FAQ/' }, | ||
{ text: 'Feedback', link: '/en/feedback/' }, | ||
{ text: 'Contribute', link: '/en/dev/' }, | ||
{ text: 'Logs', link: '/en/logs/' } | ||
] | ||
} | ||
} | ||
}, | ||
plugins: ['@vuepress/back-to-top'] | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: 常见问题及解决办法 | ||
lang: zh-CN | ||
--- | ||
|
||
## 常见问题及解决办法 | ||
|
||
### Q1: 点击按钮没有做任务但显示所有任务完成 | ||
|
||
A1: 脚本是通过任务名称识别任务类型的,所以请确保网页语言为默认语言(一般为英语),不要使用翻译插件进行翻译。 | ||
|
||
> 更多问题请查看[Github issues](https://github.com/HCLonely/auto-task/issues) | ||
## 常见错误码 | ||
|
||
### 401 | ||
|
||
身份验证失败,请检查是否已登录相应的网站。 | ||
|
||
### 500, 501, 502 | ||
|
||
服务器错误,通常是由于网站的服务器出问题导致的,可以过一段时间再访问。 | ||
|
||
### 601 | ||
|
||
请求超时,请检查网络是否畅通。 | ||
|
||
### 602 | ||
|
||
请求已取消,一般不会出现此问题。 | ||
|
||
### 603 | ||
|
||
请求出错,请检查网络是否畅通,如果网络没问题请反馈。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
home: true | ||
heroImage: null | ||
heroText: Auto Task | ||
tagline: Key 站自动任务脚本 | ||
actionText: 快速上手 → | ||
actionLink: /guide/ | ||
features: | ||
- title: 多站点支持 | ||
details: 赠 Key 较多较频繁的网站基本都支持。 | ||
- title: 多任务支持 | ||
details: 支持 Steam, Twitter, Discord, Youtube, Instagram, Reddit, Vk 等社交平台任务。 | ||
- title: 上手简单 | ||
details: 安装即用,一键完成。 | ||
footer: MIT Licensed | Copyright © 2020 by HCLonely | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: 参与开发 | ||
lang: zh-CN | ||
--- | ||
|
||
## 如何参与开发 | ||
|
||
1. Fork 本仓库 | ||
2. 克隆仓库到本地 | ||
3. 运行`pnpm install`安装依赖 | ||
4. 添加功能/修复 BUG | ||
5. 运行`npm test`无报错 | ||
6. 提交 PR | ||
|
||
## 目录结构 | ||
|
||
更新中... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: Q&A | ||
lang: en-US | ||
--- | ||
|
||
::: warning | ||
The content of this page is translated through Google translation. If the description is incorrect, please click 'Edit this page on GitHub' at the bottom of the page to help us improve the translation. | ||
::: | ||
|
||
## Common Problems | ||
|
||
### Q1: Clicking the button does not do the task but shows that all tasks are completed | ||
|
||
A1: This script identifies the task type by the task name, so please make sure that the web page language is the default language (usually English), and do not use translation plugins for translation. | ||
|
||
> For more issues, please see [Github issues](https://github.com/HCLonely/auto-task/issues) | ||
## Common error codes | ||
|
||
### 401 | ||
|
||
Authentication failed. Please check if you have logged in to the corresponding website. | ||
|
||
### 500, 501, 502 | ||
|
||
Server error is usually caused by a problem with the website's server, which can be accessed after a period of time. | ||
|
||
### 601 | ||
|
||
The request timed out, please check whether the network is smooth. | ||
|
||
### 602 | ||
|
||
The request has been cancelled, and this problem generally does not occur. | ||
|
||
### 603 | ||
|
||
There is an error in the request, please check whether the network is unblocked, if the network is ok, please feedback. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
home: true | ||
heroImage: null | ||
heroText: Auto Task | ||
tagline: Automatically complete giveaway tasks | ||
actionText: Get start → | ||
actionLink: /en/guide/ | ||
features: | ||
- title: Multisites | ||
details: Websites that give more Keys more frequently are basically supported. | ||
- title: Multitasks | ||
details: Support tasks on social platforms such as Steam, Twitter, Discord, Youtube, Instagram, Reddit, Vk. | ||
- title: Easy | ||
details: Installation is ready to use, one-click completion. | ||
footer: MIT Licensed | Copyright © 2020 by HCLonely | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: Contribution | ||
lang: en-US | ||
--- | ||
|
||
::: warning | ||
The content of this page is translated through Google translation. If the description is incorrect, please click 'Edit this page on GitHub' at the bottom of the page to help us improve the translation. | ||
::: | ||
|
||
## How to participate in development | ||
|
||
1. Fork this repo | ||
2. Clone the repo | ||
3. `pnpm install` to install dependencies | ||
4. Add feature/fix bug | ||
5. Run `npm test` without error | ||
6. Submit PR | ||
|
||
## Directory tree | ||
|
||
Editting... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: Feedback | ||
lang: en-US | ||
--- | ||
|
||
::: warning | ||
The content of this page is translated through Google translation. If the description is incorrect, please click 'Edit this page on GitHub' at the bottom of the page to help us improve the translation. | ||
::: | ||
|
||
Please follow the [Feedback Suggestion Format](#Feedback-Format) for feedback in order to troubleshoot and fix the problem! | ||
|
||
## Feedback method | ||
|
||
- Feedback by [Github issues](https://github.com/HCLonely/auto-task-v4/issues/new/choose) | ||
|
||
## Feedback Format | ||
|
||
> If you respond according to the following requirements, it will generally be processed within 24 hours. | ||
### Submit BUGg | ||
|
||
- Please confirm before submitting BUG: | ||
1. The script has been updated to the latest version before submitting the bug but it is not resolved. | ||
2. Before submitting a BUG, please confirm that you have checked [FAQ](/en/FAQ/), [Github issues](https://github.com/HCLonely/auto-task/issues) but have not been resolved. | ||
- Please provide the following information when submitting a bug: | ||
1. The browser and script manager. Example: `Environment: Chrome + Tampermonkey` | ||
2. It is best to provide a specific URL for the site where the error occurred. Example: `URL: https://gamehag.com/giveaway/918` | ||
3. Error information and screenshots, including: error popup (if any); error code in the log at the bottom right corner (if any); console details (preferably provided). | ||
|
||
### New feature request | ||
|
||
- Request support for new website | ||
1. Provide website URL and giveaway page URL, please confirm that there is at least one available giveaway page | ||
2. After seeing here, we will observe for about a month. If the frequency of donating Keys is low, no support will be added. | ||
- Request to add new features | ||
1. Propose new features and which website to add new features to | ||
2. Please make sure that there are tasks that require this feature |
Oops, something went wrong.