GithubHelp home page GithubHelp logo

hclonely / auto-task Goto Github PK

View Code? Open in Web Editor NEW
34.0 2.0 4.0 28.71 MB

此版本不再维护,新版本地址:https://github.com/HCLonely/auto-task-v4

Home Page: https://auto-task-doc.js.org

License: MIT License

HTML 0.74% JavaScript 99.16% CSS 0.10%
giveaway steam tampermonkey key

auto-task's Introduction

Test OSSAR

此版本不再维护,新版本地址:https://github.com/HCLonely/auto-task-v4

使用文档 Document

安装

  1. 安装前提:安装此脚本前请先安装Tampermonkey扩展
  2. 安装脚本:测试版 正式版

PS: 新功能和新网站的添加会先在测试版中进行测试。

使用

  1. 首次使用请先进行设置:测试版设置页面 正式版设置页面
  2. 打开相应的赠 Key 站右上角多出几个按钮就可以使用了,每个按钮的功能都可以在上一步的设置页面中进行设置

重要说明:

  1. 2.0+版本不要和 3.0+版本同时使用
  2. 2.0+版本的设置和 3.0+版本的设置不同步,首次使用 3.0+版本都要进行设置
  3. 要实现 discord 相关功能还要额外安装辅助脚本: 测试版 正式版

Reference

jQuery
Bootstrap
jQuery UI
sweetalert2
overhang
Gulp
rollup
babel
chalk
clean-css
fs-extra
standard
keyjokerScript

License

MIT © HCLonely

auto-task's People

Contributors

hclonely avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

auto-task's Issues

脚本执行出错,详细信息请查看控制台(红色背景部分)!我是设置的English

关于哪一个网站,最好提供具体网址(必需)

使用的浏览器和脚本管理器

错误信息

附加截图

大佬你好(已安装辅助脚本) 还是无法验证Discord 错误代码:401 但是我已经登陆了 Discord

关于哪一个网站,最好提供具体网址(必需)支持的网站

使用的浏览器和脚本管理器

错误信息或截图(重要)

It seems it is recognized as cheater,and I'm punished

关于哪一个网站

https://giveaway.su/giveaway/view/1569
使用的浏览器和脚本管理器

chrome Greasemonkey
错误信息

WOW! Looks like you are cheater and used some scripts to fake the completion of the tasks.

Do you understand how our service works? Do you realize that Steam keys are provided for a completion of several tasks from our sponsors? Sponsors won't provide Steam keys for giveaways if users won't complete those small tasks. If users complete all tasks - sponsors are happy, we get more sponsors, you get more Steam keys! It's a fair deal, right?

We don't sell Steam keys - we just give away them to our users. That's why we don't have money to give away hundreds of thousands of Steam keys like HumbleBundle or some other big stores. We have to find sponsors. And this is really hard nowadays. But we keep posting at least one giveaway every day.

We are OKAY about scripts helping you to complete tasks faster. But faking the completion of the tasks IS NOT OKAY.

You won't get a key from this giveaway, cheater. Sorry, but if you are going to continue cheating - you will be blocked on our service.

附加截图

截屏2020-02-17下午4 20 30

Gleam.io - Function:$(document).keydown execution error, please see the console for details (red background part)!

关于哪一个网站,最好提供具体网址(必需)支持的网站

gleam.io e.g. https://gleam.io/TzYX0/embed?l=https%3A%2F%2Fgame.intel.com%2Fww%2Fgiveaways%2Fbattlerite-all-champions-pack-key-giveaway

使用的浏览器和脚本管理器

FIrefox & Violentmonkey

错误信息或截图(重要)

image

$(document).keydown
window.VMin0h1csi9e/</</</<@moz-extension://c3fe3915-e0c4-4427-9ad8-85e0f450d405/%20Auto%20Task.user.js#3:14133:29
dispatch@moz-extension://c3fe3915-e0c4-4427-9ad8-85e0f450d405/%20Auto%20Task.user.js#3:5:42571
add/v.handle@moz-extension://c3fe3915-e0c4-4427-9ad8-85e0f450d405/%20Auto%20Task.user.js#3:5:40572

Nothing workes....

关于哪一个网站

使用的浏览器和脚本管理器

错误信息

附加截图

Nothing workes....

Not working after Chrome 90

关于哪一个网站,最好提供具体网址(必需)支持的网站

https://auto-task.hclonely.com/setting.html

使用的浏览器和脚本管理器

Google Chrome 90.0.4430.93
Tampermonkey v4.12

错误信息或截图(重要)

Noting in the console.
image
image

Giveaway.su compatibility improvement

So, instead of having to manually disable the userscript every time you want to grab a key (in order to avoid detection and get 0000-0000-0000), I think I found a better method of automating it.

When first opening the page (and being logged in), before auto-task script does anything, it will first do this:

const hashVal = "autotask"; // could be anything really
if (location.host === "giveaway.su" && location.pathname.startsWith("/giveaway/view/") && location.hash !== "#" + hashVal) {
  let url = new URL(location.href);
  url.hash = hashVal;
  GM_openInTab(url.href, false);
  return; // don't execute anything else from the script, to avoid detection
}

This way you should have 2 tabs opened for giveaway, one with the userscript functionality and one where the userscript is not executed (except the first check). A user can that easily toggle between them without going through the effort of disabling the userscript.

Indie DB - 正在加入赠key...Error:Invalid origin, you cannot post content to the URL requested.

关于哪一个网站,最好提供具体网址(必需)支持的网站

https://www.indiedb.com/giveaways/

使用的浏览器和脚本管理器

Firefox & Violentmonkey

错误信息或截图(重要)

正在加入赠key...Error:Invalid origin, you cannot post content to the URL requested.

Please add https://playr.gg

Adding this website would be amazing, they do a lot of tech giveaways. Even just removing the animations from the drop downs and other elements would speed up entering the giveaways.

https://playr.gg/

Thanks!

gamehag 無法自動加退組

关于哪一个网站,最好提供具体网址(必需)

gamehag.com/giveaway/863
準確來說是整個gamehag都有該問題

使用的浏览器和脚本管理器

Win10
Chrome(X64) 83.0.4103.97
Tampermonkey

错误信息

(沒有error message)

其實這不算bug Report
gamehag中無法自動加、退steam組
上傳本issus時已逐步重現該問題

  1. Auto-task 腳本重新安裝並設定
  2. Tampermonkey重新安裝、Auto-Task重新安裝
  3. Chrome 刪除cookies、瀏覽紀錄、Tampermonkey重新安裝、Auto-Task重新安裝
    皆會出現同樣狀況

但在另外一台Win7環境上一樣的Chrome、Tampermonkey 可自動加退組
並且在其他網頁,如marvelousga可正常加退組、關注取關等
附加截图

flChess Giveaway _ Gamehag - Google Chrome 2020_6_14 下午 11_55_04 (2)

为什么在giveaway.su执行的时候经常会漏掉一两个

关于哪一个网站,最好提供具体网址(必需)支持的网站

比如在https://giveaway.su/giveaway/view/1498上,其中有三个鉴赏家,但是只有
https://store.steampowered.com/curator/27162873/
不会被执行

使用的浏览器和脚本管理器

Tampermonkey BETA 4.11.6120
Chrome 86.0.4240.198
错误信息或截图(重要)

{
"result": "Error",
"statusText": "Error",
"status": 603,
"data": {
"readyState": 4,
"responseHeaders": "",
"finalUrl": "https://store.steampowered.com/explore/followgame/",
"status": 0,
"statusText": "",
"responseXML": null,
"responseText": "",
"response": null
},
"options": {
"url": "https://store.steampowered.com/explore/followgame/",
"method": "POST",
"headers": {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
},
"data": "sessionid=1b77bd286da99f11ce5eed39&appid=933070"
}
}

VisitLink method

I think you can use http method HEAD for visit link tasks. If it counts, you avoid unnecessary bandwidth and recourses.

3.67和3.68在keylol不正常加载

关于哪一个网站,最好提供具体网址(必需)支持的网站

keylol

使用的浏览器和脚本管理器

Chrome 94.0.4606.61 Tampermonkey BETA 4.14.6144

错误信息或截图(重要)

userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:2 @require: couldn't load @require from URL 'https://cdn.jsdelivr.net/gh/HCLonely/[email protected]/require/require.min.js#md5=5c5479ce5f02a270b791d57b362504e2' due to a SRI error
tms_95c2ffd5_a379_40c3_9858_3c997aa128df @ userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:2
(匿名) @ VM744:3
eval @ userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:1
eval @ userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:1
eval @ userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:14250
eval @ userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:14252
(匿名) @ VM744:3
t @ VM744:2
(匿名) @ VM744:3
eval @ VM776:69
create @ VM776:71
c @ VM776:7
runListeners @ VM776:7
eval @ VM776:72
v @ VM744:13
(匿名) @ VM743 content.js:93
s @ VM743 content.js:93
send @ VM743 content.js:94
(匿名) @ VM743 content.js:120
processQueue @ VM743 content.js:89
a @ VM743 content.js:96
userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:14243 Uncaught (in promise) ReferenceError: Swal is not defined
    at Window.tms_95c2ffd5_a379_40c3_9858_3c997aa128df (userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:14243)
    at <anonymous>:3:30
    at eval (userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:1)
    at eval (userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:1)
    at eval (userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:14250)
    at eval (userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:14252)
    at eval (<anonymous>)
    at <anonymous>:3:30
    at Object.t [as F_c] (<anonymous>:2:125)
    at Object.E_u (<anonymous>:3:194)
tms_95c2ffd5_a379_40c3_9858_3c997aa128df @ userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:14243
(匿名) @ VM744:3
eval @ userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:1
eval @ userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:1
eval @ userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:14250
eval @ userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:14252
(匿名) @ VM744:3
t @ VM744:2
(匿名) @ VM744:3
eval @ VM776:69
create @ VM776:71
c @ VM776:7
runListeners @ VM776:7
eval @ VM776:72
v @ VM744:13
Uncaught (in promise) ReferenceError: Swal is not defined
    at Window.tms_95c2ffd5_a379_40c3_9858_3c997aa128df (userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:14243)
    at <anonymous>:3:30
    at eval (userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:1)
    at eval (userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:1)
    at eval (userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:14250)
    at eval (userscript.html?name=%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1.user.js&id=95c2ffd5-a379-40c3-9858-3c997aa128df:14252)
    at eval (<anonymous>)
    at <anonymous>:3:30
    at Object.t [as F_c] (<anonymous>:2:125)
    at Object.E_u (<anonymous>:3:194)

Giveaway.su RU version

As a resident of Russia, I can't use your script on Giveaway.su . When I click on the button to complete the tasks, nothing happens. Can the language of the site affect how the script works?
Screenshot_3

新版本Alpha测试资格申请

AutoTask脚本V4版本正在测试,目前脚本还在初步重置阶段,会有很多不可预想的bug,并且还没实装UI界面,只有基本的做/取消做任务功能,需要有一定的js基础才可使用。
申请表单:https://forms.gle/kJw8NCLKFuXS5ati7
新版脚本已支持以下网站:

  • Freeanywhere
  • GiveawaySu
  • GiveeClub
  • Givekey
  • Indiedb
  • Keyhub
  • Keylol
  • Prys
  • Opquests
  • Gleam

根据提供的解决方案重新支持giveaway.su的验证获取一条龙服务

关于哪一个网站

https://giveaway.su/

关于哪一项功能

验证获取KEY

期望的效果

自动验证并获取key

解决方案
分析 main.js 得到如下验证串生成算法:(这是在点击“Grab key”按钮时进行的动作)

// checkData算法
// 所以,在提交的时候直接移除添加的HTML是否可行?
let html = document['documentElement']['innerHTML'];
let _encodeURIComponent = encodeURIComponent(html);
$("#modal-captcha input[name='checkData']")["val"](window['btoa'](unescape(_encodeURIComponent)) + '' + $("#modal-captcha input[name='checkData']")["val"]());
// actionsData算法
var resultArr = [];
$('#actions [data-result]')["each"](function(_0x7e5ae3, ele) {
    // ele - 绿色打勾元素
    resultArr["push"]($(ele)["data"]("result"));
});
$("#modal-captcha input[name='actionsData']")["val"](window['btoa'](unescape(encodeURIComponent(resultArr['join'](',') + ''))));
$("#form-captcha")['attr']("action", $("#getKey a")["attr"]("href"));
$("#modal-captcha")["modal"]("show");

于是乎,可以在提交验证的时候尝试将html恢复原样(删除添加的HTML元素)

document.getElementById("fuck-task-btn").remove();
document.getElementById("fuck-task-info").remove();
document.getElementById("cb584446-192e-4ef5-a169-b4895bd31fe5").remove();// 移除油猴插入的css,此id是变化的

效果:
解决.gif

opiumpulses not work

关于哪一个网站,最好提供具体网址(必需)

https://www.opiumpulses.com/giveaways

使用的浏览器和脚本管理器

Chrome w/ Tampermonkey

错误信息

image

附加截图

image

gleam.io not work

关于哪一个网站,最好提供具体网址(必需)支持的网站

https://gleam.io/GxFo6/cyberpunk-2077-giveaway

使用的浏览器和脚本管理器

Chrome Tampermonkey

错误信息或截图(重要)

image

gleam.fuckTypeError: this.get_tasks is not a function at fuck (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=%25E8%2587%25AA%25E5%258A%25A8%25E4%25BB%25BB%25E5%258A%25A1.user.js&id=5be77094-4a97-4c79-b425-59ffd96f3a04:10030:16) at <anonymous>:4:80 at i (eval at exec_fn (:2:115), <anonymous>:13:165) at eval (eval at exec_fn (:2:115), <anonymous>:13:292) at <anonymous>:13:99 at HTMLDocument.v (<anonymous>:13:118)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.