自动化的微软奖励脚本,这次使用 TypeScript、Cheerio 和 Playwright 编写。
该项目来源于https://github.com/TheNetsky/Microsoft-Rewards-Script ,感谢原作者的付出
本项目不定时同步原项目代码,主要内容为本地化处理,主要针对的是国内用户无法访问外网google和输出日志简单翻译等问题,并在原有基础上完善功能。若有侵权请联系我删除。
本项目所有改动基于win11系统和docker环境。其他系统未测试,请根据原项目相关配置设置。
2026年4月11日00:56:33
accounts.json添加你的账户信息config.json 文件npm start或运行 run.bat 启动构建好的脚本npm install 安装依赖包accounts.example.json 重命名为 accounts.json,并添加你的账户信息config.json 文件npm run pre-build 预构建脚本npm run build 构建脚本npm start 启动构建好的脚本config.json内的 headless设置为truecompose.yamlTZCRON_SCHEDULE (默认为每天7点执行一次)RUN_ON_START=truedocker compose up -d
src/accounts.example.json 为 src/accounts.json 并添加您的凭据src/config.example.json 为 src/config.json 并自定义您的偏好。编辑 src/config.json 以自定义行为。
以下是关键配置部分的摘要。
| 设置 | 描述 | 默认值 |
|---|---|---|
baseURL | Microsoft Rewards base URL | https://rewards.bing.com |
sessionPath | 用于存储浏览器会话的文件夹 | sessions |
headless | 在后台运行浏览器 | false(可见) |
dryRun | 模拟执行而不运行任务 | false |
parallel | 同时运行移动/桌面任务 | true |
runOnZeroPoints | 在没有可用积分时继续 | false |
clusters | 并发账户实例数 | 1 |
| 设置 | 描述 | 默认值 |
|---|---|---|
saveFingerprint.mobile | 重用移动浏览器指纹 | false |
saveFingerprint.desktop | 重用桌面浏览器指纹 | false |
| 设置 | 描述 | 默认值 |
|---|---|---|
workers.doDailySet | 完成每日集活动 | true |
workers.doMorePromotions | 完成促销优惠 | true |
workers.doPunchCards | 完成打卡活动 | true |
workers.doDesktopSearch | 执行桌面搜索 | true |
workers.doMobileSearch | 执行移动搜索 | true |
workers.doDailyCheckIn | 完成每日签到 | true |
workers.doReadToEarn | 完成阅读赚取活动 | true |
| 设置 | 描述 | 默认值 |
|---|---|---|
searchOnBingLocalQueries | 使用本地查询 vs. 获取的查询 | false |
searchSettings.useGeoLocaleQueries | 生成基于位置的查询 | false |
searchSettings.scrollRandomResults | 随机滚动搜索结果 | true |
searchSettings.clickRandomResults | 点击随机结果链接 | true |
searchSettings.searchDelay | 搜索之间的延迟(最小/最大) | 3-5 分钟 |
searchSettings.retryMobileSearchAmount | 移动搜索重试次数 | 2 |
| 设置 | 描述 | 默认值 |
|---|---|---|
humanization.enabled | 启用人类行为 | true |
stopOnBan | 封禁时立即停止 | true |
immediateBanAlert | 被封禁时立即提醒 | true |
actionDelay.min | 每个操作的最小延迟(毫秒) | 500 |
actionDelay.max | 每个操作的最大延迟(毫秒) | 2200 |
gestureMoveProb | 随机鼠标移动几率 | 0.65 |
gestureScrollProb | 随机滚动几率 | 0.4 |
| 设置 | 描述 | 默认值 |
|---|---|---|
globalTimeout | 操作超时持续时间 | 30s |
logExcludeFunc | 从日志中排除的函数 | SEARCH-CLOSE-TABS |
webhookLogExcludeFunc | 从 webhooks 中排除的函数 | SEARCH-CLOSE-TABS |
proxy.proxyGoogleTrends | 代理 Google Trends 请求 | true |
proxy.proxyBingTerms | 代理 Bing Terms 请求 | true |
| 设置 | 描述 | 默认值 |
|---|---|---|
webhook.enabled | 启用 Discord 通知 | false |
webhook.url | Discord webhook URL | null |
conclusionWebhook.enabled | 启用仅摘要 webhook | false |
conclusionWebhook.url | 摘要 webhook URL | null |
账户管理:
自动化与控制:
搜索与活动:
测验与互动内容:
通知与监控:
风险自负! 使用自动化脚本时,您的 Microsoft Rewards 账户可能会被暂停或禁止。
此脚本仅供教育目的。作者对 Microsoft 采取的任何账户操作不承担责任。