{"id":15131225,"url":"https://github.com/supermonster003/ant-forest","last_synced_at":"2025-05-15T07:02:44.903Z","repository":{"id":37816572,"uuid":"176399479","full_name":"SuperMonster003/Ant-Forest","owner":"SuperMonster003","description":"AutoJs6-based ant forest energy auto-collect script (基于 AutoJs6 的蚂蚁森林能量自动收取脚本)","archived":false,"fork":false,"pushed_at":"2023-01-21T14:47:20.000Z","size":4603,"stargazers_count":2857,"open_issues_count":90,"forks_count":558,"subscribers_count":79,"default_branch":"master","last_synced_at":"2025-04-07T01:11:21.309Z","etag":null,"topics":["alipay","autojs","autojs6","automation","javascript","script"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SuperMonster003.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-19T01:36:10.000Z","updated_at":"2025-04-06T05:09:12.000Z","dependencies_parsed_at":"2023-02-12T10:46:11.514Z","dependency_job_id":null,"html_url":"https://github.com/SuperMonster003/Ant-Forest","commit_stats":null,"previous_names":[],"tags_count":55,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperMonster003%2FAnt-Forest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperMonster003%2FAnt-Forest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperMonster003%2FAnt-Forest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperMonster003%2FAnt-Forest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuperMonster003","download_url":"https://codeload.github.com/SuperMonster003/Ant-Forest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248852123,"owners_count":21171839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alipay","autojs","autojs6","automation","javascript","script"],"created_at":"2024-09-26T03:24:39.106Z","updated_at":"2025-04-14T08:57:31.137Z","avatar_url":"https://github.com/SuperMonster003.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--suppress HtmlDeprecatedAttribute --\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cp\u003e\n    \u003cimg alt=\"AF_Banner\" src=\"https://raw.githubusercontent.com/SuperMonster002/Hello-Sockpuppet/master/ant-forest-banner_374%C3%97106.png\"/\u003e\n  \u003c/p\u003e\n\n  \u003cp\u003e基于 Auto.js 的蚂蚁森林能量自动收取脚本\u003c/p\u003e\n  \u003cp\u003eAuto.js-based ant forest energy auto-collect script\u003c/p\u003e\n\n  \u003cp\u003e\n    \u003ca href=\"https://github.com/SuperMonster003/Ant-Forest/releases/latest\"\u003e\u003cimg alt=\"GitHub release (latest by date)\" src=\"https://img.shields.io/github/v/release/SuperMonster003/Ant-Forest\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/SuperMonster003/Ant-Forest/issues\"\u003e\u003cimg alt=\"GitHub closed issues\" src=\"https://img.shields.io/github/issues/SuperMonster003/Ant-Forest?color=009688\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/SuperMonster003/AutoJs6\"\u003e\u003cimg alt=\"GitHub AutoJs6 repository\" src=\"https://img.shields.io/badge/auto.js-\u003e= 6.2.0-67a91b\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/topics/javascript\"\u003e\u003cimg alt=\"GitHub top language\" src=\"https://img.shields.io/github/languages/top/SuperMonster003/Ant-Forest?color=eb8031\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.codefactor.io/repository/github/SuperMonster003/Ant-Forest\"\u003e\u003cimg alt=\"CodeFactor Grade\" src=\"https://www.codefactor.io/repository/github/SuperMonster003/Ant-Forest/badge\"/\u003e\u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://github.com/SuperMonster003/Ant-Forest/commit/d43a0119b214a17062501ea8a938b13bd97d2028\"\u003e\u003cimg alt=\"Created\" src=\"https://img.shields.io/date/1552924800?color=2e7d32\u0026label=created\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/SuperMonster003/Ant-Forest/find/master\"\u003e\u003cimg alt=\"GitHub Code Size\" src=\"https://img.shields.io/github/languages/code-size/SuperMonster003/Ant-Forest?color=795548\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/SuperMonster003/Ant-Forest/find/master\"\u003e\u003cimg alt=\"GitHub Code Lines\" src=\"https://img.shields.io/tokei/lines/github/SuperMonster003/Ant-Forest?color=37474F\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/SuperMonster003/Ant-Forest/blob/master/LICENSE\"\u003e\u003cimg alt=\"GitHub License\" src=\"https://img.shields.io/github/license/SuperMonster003/Ant-Forest?color=534BAE\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.jetbrains.com/?from=Ant-Forest\"\u003e\u003cimg alt=\"JetBrains supporter\" src=\"https://img.shields.io/badge/supporter-JetBrains-ee4677\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/SuperMonster003/Ant-Forest/blob/master/assets/docs/TODO.md\"\u003e\u003cimg alt=\"Todo list\" src=\"https://img.shields.io/badge/todo-56-C63F17\"/\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n******\n\n### 待办事项\n\n******\n\n| Status | Task                             |        Date         | Cost |            Progress            |\n|:------:|----------------------------------|:-------------------:|:----:|:------------------------------:|\n|   ✔️   | 推迟任务加入下次关屏选项                     | 2021-11-01 18:16:56 |  5   |               1                |\n|   ✔️   | 能量雨加入近似区域点击检测                    | 2021-10-27 14:48:18 |  3   |               1                |\n|   ✔️   | v2.2.0 发布后检查 documents 相关的链接     | 2021-10-26 23:07:16 |  1   |               1                |\n|   ✒️   | 扩展模块及插件重构                        | 2021-10-26 14:37:07 | ! 8  |     0.39 \u003c!-- 13 / 33 --\u003e      |\n|   ✒️   | 排行榜策略加入黑名单检测方案配置 (#529)          | 2021-10-31 18:57:17 | ! 5  |              0.00              |\n|   ✒️   | 事件监测配置 (#533) \u003c!-- REM#1 --\u003e     | 2021-10-26 10:50:40 | ! 6  |      0.00 \u003c!-- 0 / 3 --\u003e       |\n|   ✒️   | 自动关闭屏幕配置 (#476) \u003c!-- REM#4 --\u003e   | 2021-10-26 11:15:11 | ! 6  |              0.00              |\n|   ✒️   | 提取 JSDoc@typedef 到 TS 声明文件       | 2021-10-25 22:25:18 |  10  |    0.94 \u003c!-- 1 - 5 / 86 --\u003e    |\n|   ✒️   | 保护地巡护工具                          | 2021-10-26 10:34:25 |  9   |       0.20 \u003c!-- est --\u003e        |\n|   ✒️   | 将 tool functions 转换为 OOP         | 2021-10-25 22:24:13 |  10  |  0.18 \u003c!-- 1 - 208 / 256 --\u003e   |\n|   ✒️   | 分离 appx 模块 (autojs / alipay ...) | 2021-10-25 22:24:13 |  6   |   0.17 \u003c!-- 1 - 24 / 29 --\u003e    |\n|   ✒️   | 启动器模块化                           | 2021-10-26 08:25:42 |  10  | 0.00 \u003c!-- 1 -  6947 / 6998 --\u003e |\n|   ✒️   | 配置工具模块化                          | 2021-10-26 08:24:34 |  10  | 0.00 \u003c!-- 1 - 8152 / 8138 --\u003e  |\n\n\u003e 全部待办事项可参阅 [TODO.md](https://github.com/SuperMonster003/Ant-Forest/blob/master/assets/docs/TODO.md) (共计 56 项)\n\n******\n\n### 使用说明\n\n******\n\n1. 检查设备环境\n\n- 操作系统: [Android 7.0](https://zh.wikipedia.org/wiki/Android_Nougat) (`API 24`) 及以上\n\n2. 下载并安装 Auto.js\n\n- [AutoJs6](https://github.com/SuperMonster003/AutoJs6/releases/latest) (`开源免费`)\n\n\u003e 自 v2.3.0 起将仅支持使用 AutoJs6 运行当前项目  \n\u003e 因项目运行依赖于 [Rhino 引擎](https://github.com/mozilla/rhino) 的部分 [新特性](https://github.com/SuperMonster003/AutoJs6/blob/master/app/src/main/assets/doc/RHINO.md) 及 AutoJs6 的部分新 API 及内置模块\n\n3. 下载并部署项目 (任意一种方式)\n\n- [下载项目部署工具](https://raw.githubusercontent.com/SuperMonster003/Ant-Forest/master/tools/ant-forest-deployment-tool.min.js) (`*.js`)\n    1. 将部署工具 (脚本文件) `保存` 或 `另存为` 至本地存储\n    2. 用 `AutoJs6` 直接运行 (或导入后运行) 脚本文件完成部署\n    3. 部署后可能需要关闭并重启 `AutoJs6` 才能看到项目目录\n- [下载最新项目数据包](https://github.com/SuperMonster003/Ant-Forest/archive/master.zip) (`*.zip`)\n    1. 将项目数据包解压到本地存储\n    2. 定位到设备的内部存储目录 如:  \n       `/内部存储/` `/Internal Storage/` `/sdcard/` `/storage/emulated/0/` 等\n    3. 在此目录下找到 `AutoJs6` 默认工作目录  \n       · 中文系统默认目录 `./脚本/`  \n       · 英文系统默认目录 `./Scripts/`\n    4. 若不存在则需手动建立工作目录  \n       或在 `AutoJs6` 软件中设置工作目录\n    5. 将解压后的项目文件夹放置在工作目录中\n\n\u003e 项目支持更新版本的自动检查/提示/下载/版本忽略等相关功能\n\n4. 使用 Auto.js 运行项目\n\n- 运行 `ant-forest-launcher.js` 启动项目\n- 运行 `ant-forest-settings.js` 配置项目\n\n\u003e 项目 `tools` 文件夹包含 [小工具](https://github.com/SuperMonster003/Ant-Forest/blob/master/assets/docs/MANUAL.md#%E5%85%B6%E4%BB%96%E8%BE%85%E5%8A%A9%E5%B7%A5%E5%85%B7)\n\n******\n\n### 使用指南\n\n******\n\n* [快速手册](https://www.bilibili.com/video/av91979276/) (`视频`)\n* [项目文档](https://github.com/SuperMonster003/Ant-Forest/wiki/%E8%9A%82%E8%9A%81%E6%A3%AE%E6%9E%97-(Ant-Forest)) (`文字`)\n\n******\n\n### 功能简介\n\n******\n\n* 自动收取好友能量\n* 自动收取/监测自己能量\n* 收取结果统计/展示\n\n\u003cdetails\u003e\u003csummary\u003e查看更多功能\u003c/summary\u003e\u003cbr\u003e\n\n* 控制台消息提示  \n  · 开发者测试日志 (默认关闭)\n* 自动解锁屏幕  \n  · 提供解锁密码录入等配置\n* 定时任务与循环监测  \n  · 好友排行榜样本复查  \n  · 主页能量球循环监测  \n  · 定时任务自动管理\n* 多任务自动排队\n* 脚本运行安全  \n  · 运行失败自动重试  \n  · 单次运行最大时间限制  \n  · 排他性任务最大排队时间限制  \n  · 脚本炸弹预防\n* 事件监测与处理  \n  · 账户登出  \n  · 屏幕意外关闭  \n  · 来电响铃或通话\n* 多语言支持 (简体中文/英语)  \n  · 自动切换简体中文语言\n* 黑名单机制  \n  · 能量保护罩黑名单自动管理  \n  · 用户自定义黑名单管理 (列表选择/检索选择)\n* 项目管理  \n  · 在线更新项目  \n  · 本地备份项目  \n  · 本地或服务器还原项目  \n  · 项目更新提示/版本忽略\n* 信息加密存储  \n  · 使用密文存储账户信息/解锁密码等敏感信息\n* 账户功能  \n  · 防止其他账户意外收取 (需录入主账户信息)  \n  · 主账户操作完毕可自动回切之前登录的账户\n* 统计功能\n* 适应恶劣条件  \n  · 脚本在网络条件较差时仍可正常运行或识别异常\n* 图形化配置工具  \n  · 基于UI的配置工具 可详细配置项目参数\n\n\u003c/details\u003e\n\n******\n\n### 版本历史\n\n******\n\n[comment]: \u003c\u003e (Version history only shows last 3 versions)\n\n# v2.3.1\n\n###### 2023/01/21\n\n* `修复` 蚂蚁森林页面更新后无法收取自己及好友能量的问题\n\n# v2.3.0\n\n###### 2022/03/20 - 代码重构 谨慎升级\n\n* `优化` 重构部分模块以适配 AutoJs6\n\n# v2.2.2\n\n###### 2021/11/01\n\n* `新增` 运行前提示对话框的推迟任务列表增加\"息屏时\"选项\n* `修复` 解锁密码为空时无法解锁设备的问题\n* `修复` 逛一逛方案无法识别能量雨页面判断条件的问题\n* `修复` 配置工具输入忽略版本内容时可能导致脚本崩溃的问题\n* `修复` 设备屏幕水平方向启动项目后刷新屏显参数失败的问题 _[`issue #534`](https://github.com/SuperMonster003/Ant-Forest/issues/534)_\n* `修复` 配置工具定时任务控制面板定时任务及任务类型识别异常的问题\n* `管理` 项目图片资源文件夹移除打赏二维码并迁移至README.md中\n* `管理` 项目图片资源文件夹内增加.nomedia防止媒体库中出现无关资源\n\n##### 更多版本历史可参阅\n\n* [CHANGELOG-2.md](https://github.com/SuperMonster003/Ant-Forest/blob/master/assets/docs/CHANGELOG-2.md)  ( 2.x 版本 )\n* [CHANGELOG-1.md](https://github.com/SuperMonster003/Ant-Forest/blob/master/assets/docs/CHANGELOG-1.md)  ( 1.x 版本 )\n\n******\n\n### 相关项目\n\n******\n\n* [Auto.js](https://github.com/hyb1996/Auto.js) { author: [hyb1996](https://github.com/hyb1996) }\n    - `安卓平台 JavaScript 自动化工具`\n* [Auto.js-TypeScript-Declarations](https://github.com/SuperMonster003/Auto.js-TypeScript-Declarations) { author: [SuperMonster003](https://github.com/SuperMonster003) }\n    - `Auto.js 声明文件 (d.ts)`\n\n******\n\n### 打赏 (Tip)\n\n******\n\n\u003cdetails\u003e\u003csummary\u003e查看详情 (Click to show details)\u003c/summary\u003e\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\nTo tip online, scan the QR code below \u003cbr\u003e\n扫描对应二维码可打赏 \u003cbr\u003e\u003cbr\u003e\nI believe I could make it better with your support :) \u003cbr\u003e\n感谢每一份支持和鼓励 \u003cbr\u003e\u003cbr\u003e\n\n\u003ca href=\"https://raw.githubusercontent.com/SuperMonster002/Hello-Sockpuppet/master/qr-alipay-sponsor_521%C3%97648.png\"\u003e\u003cimg alt=\"Alipay sponsor\" src=\"https://raw.githubusercontent.com/SuperMonster002/Hello-Sockpuppet/master/qr-alipay-sponsor_521%C3%97648.png\" height=\"224\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://raw.githubusercontent.com/SuperMonster002/Hello-Sockpuppet/master/qr-wechat-sponsor_521%C3%97648.png\"\u003e\u003cimg alt=\"WeChat sponsor\" src=\"https://raw.githubusercontent.com/SuperMonster002/Hello-Sockpuppet/master/qr-wechat-sponsor_521%C3%97648.png\" height=\"224\"/\u003e\u003c/a\u003e\n\u003c/div\u003e\n\u003c/details\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupermonster003%2Fant-forest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupermonster003%2Fant-forest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupermonster003%2Fant-forest/lists"}