Commit Graph

127 Commits

Author SHA1 Message Date
Netsky
8365a0c422 Delete dockerignore 2026-01-05 16:30:38 +01:00
Netsky
62eb1775e3 Update .dockerignore to exclude additional files 2026-01-05 16:30:18 +01:00
TheNetsky
576899f39d v3.1.0 initial 2026-01-05 16:26:47 +01:00
AariaX
a8ddb65b21 fix: workers not exiting when using mutliple clusters (#435)
* fix: workers not exiting when using mutliple clusters

* refactor: use process.disconnect for cleaner exit
v3.0.2
2026-01-03 11:48:29 +01:00
Heikon Silva Costa
0e8ca0c862 Add .dockerignore to exclude dist and node_modules (#433) 2025-12-31 11:44:17 +01:00
Gianluca Lauro
ffb4a28785 added github workflow (#424) 2025-12-25 11:09:02 +01:00
Netsky
efbadb7d0b Re-add queries.json file 2025-12-17 17:54:18 +01:00
Netsky
f9fcbd851e Temp: Refer to v1/2 for installation instructions 2025-12-17 17:50:45 +01:00
Netsky
0b419fad38 Update URL to fetch queries.json from v3 branch v3.0.1 2025-12-17 17:45:46 +01:00
Netsky
bd3fa2c603 Bump version from 3.0.0 to 3.0.1 2025-12-17 17:43:36 +01:00
Netsky
edd69c3bd7 Fix, actually reverting to 'US' 2025-12-17 17:41:12 +01:00
TheNetsky
5176cfb02d Add missing auth for Axios
Close #417
2025-12-11 17:12:45 +01:00
TheNetsky
2c4d85f732 v3 init
Based of v3.0.0b10.
2025-12-11 16:16:32 +01:00
TheNetsky
7b4b20ab4e Cleanup 2025-12-11 14:33:48 +01:00
Netsky
0059192519 Proper 1.5 readme
Updated configuration reference and options in README.md.
2025-11-11 13:11:36 +01:00
Netsky
a36b7eaef5 Remove setup script 2025-11-11 11:18:47 +01:00
Netsky
59b9f25d2c Delete setup directory 2025-11-11 11:17:26 +01:00
Netsky
e89b8c0c52 Update Nix setup instructions in README
Reorganize Nix setup instructions for clarity.
2025-11-11 11:16:28 +01:00
Netsky
649cf28ad9 Revise README for setup and features clarity
Updated README with detailed setup instructions and features overview.
2025-11-11 11:12:30 +01:00
Hasbullah Almughniy
624f5a32e1 ignore .playwright-chromium-installed from git (#387) 2025-11-06 07:39:03 +01:00
Netsky
3b21f45fcc Change Bing login URL to rewards dashboard
Updated the Bing login URL to redirect to the rewards dashboard.
2025-11-05 13:12:28 +01:00
Netsky
f857b3ad1a Refactor README for clarity and updates
Updated README to improve clarity and structure, removed outdated sections, and added Discord badge.
2025-11-03 11:25:31 +01:00
Netsky
0b7088a7e6 Add GNU GPL v3 license
Added the GNU General Public License version 3 to the project.
2025-11-03 11:19:28 +01:00
Michael Cammarata
64ffabcceb Update run_daily.sh (#398)
Fix for scheduler for docker version
2025-11-01 14:39:34 +01:00
Michael Cammarata
86f65b448d Port Dockerfile optimizations from v2 to v1.53, no functionality changes. (#386)
* port v2 optimizations to v1.5

Updated dockerfile with v2 optimizations. Ported Login.ts no dialogs fix.

* Update entrypoint.sh

Fix playwright path in entrypoint as well
2025-10-21 15:48:59 +02:00
Light
14492b27cb Edit README.md (#376)
* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Fix markdown formatting in README.md

* Update README.md
2025-10-11 16:54:40 +02:00
Light
62d1a0a14b README.md modification of Legacy 1.5.3 (#366)
* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Revise README for v2 beta release announcement

Updated README for Microsoft Rewards Script v2 beta release, including new version notice and feedback encouragement.
2025-10-01 18:29:39 +02:00
Light
02160a07d9 Small update to be deployed quickly. (#358)
* chore: Update TypeScript configuration and add @types/node as a dev dependency

* feat: Add unified cross-platform setup script for easier configuration and installation

* docs: Revise README for improved setup instructions and clarity

* feat: Enhance setup scripts with improved prerequisite checks and user prompts

* feat: Refactor setup scripts and enhance browser handling with automatic Playwright installation
2025-09-16 09:34:49 +02:00
Light
b66114d4dd feat: Add conclusion webhook support for final summary notifications (#355)
- Updated README.md to include new configuration options for conclusion webhook.
- Enhanced BrowserFunc.ts with improved error handling during page reloads.
- Implemented conclusionWebhook configuration in config.json.
- Refactored Login.ts to use Playwright types and improved passkey handling.
- Added safeClick method in SearchOnBing.ts to handle click timeouts and overlays.
- Introduced account summary collection in index.ts for reporting.
- Created ConclusionWebhook.ts to send structured summaries to a dedicated webhook.
- Updated TypeScript definitions for better type safety across the project.
2025-09-14 08:29:09 +02:00
Light
2e80266ad1 Update Login.ts (#349) 2025-09-10 20:44:20 +02:00
Michael Cammarata
072e96dd53 Improvements to docker scheduling and lock file (#339)
* improved logic that prevents overlapping runs, added logic to kill the process if it is stuck or doesn't exit properly

* Improve lock file logic

Improve lock file logic to release lock if the script didn't finish cleanly on a prior run. Otherwise shouldn't interrupt actual run.

* Tidy up readme for docker
2025-09-10 09:29:28 +02:00
hmcdat
eea4407454 disable fido (passkey, face id, security key) authentication (#342) 2025-08-30 15:22:32 +02:00
Simon Gardling
ad2e0b8bb3 Update Playwright + Use Nix (#311)
* use nix for execution

* update setup instructions

* headless

* headless via xvfb-run
2025-08-22 00:43:17 +02:00
qingzt
ad3b215dbc fix skip 2FA (#332) 2025-08-10 15:10:38 +02:00
Michael Cammarata
f51daf06d6 Docker rewrite and optimizations (#321)
* Optimizations of dockerfile

Massive test optimizations with drop in image size to about 256mb from about 1.2 gb. Drawback is that I currently have to keep the dockerfile playwright version matched to the package.json version

* further optimizations

Removed redundant (hopefully) sessions directory creation during build

* Fix docker cron dependencies

Small fix that should make cron run properly

* Major docker update!

- **Dockerfile rewritten as a multi-stage build**
  - Split into a “builder” stage (`node:18-slim`) to install dependencies and compile TypeScript, and a “runtime” stage (official Playwright image) to run the script.
  - This keeps build tools and dependencies out of the final image, making it smaller, faster to pull, and more secure.

- **Entrypoint script (`entrypoint.sh`)**
  - Introduced an entrypoint that runs inside the container at startup to:
    1. Set the container’s timezone (`TZ`) correctly, based on the environment or defaulting to UTC.
    2. Validate that the user provided a `CRON_SCHEDULE` (exiting early with an error if missing).
    3. Optionally perform an initial run of the script immediately (when `RUN_ON_START=true`), without any random sleep.
  - Centralizing setup in an entrypoint keeps the Dockerfile simpler and ensures proper signal handling.

- **`run_daily.sh` improvements**
  - Removed custom browser-path override so Playwright uses bundled browsers in the official image.
  - Added a lock using `flock` to prevent overlapping runs if a previous run is still in progress.
  - Retained the random sleep between 5 and 50 minutes before each run.
  - Logs are timestamped and clearly report success or failure.

- **Cron template tweaks**
  - Updated `src/crontab.template` so that each job line redirects both stdout and stderr into Docker’s stdout (`>> /proc/1/fd/1 2>&1`), making it easy to view logs via `docker logs`.

- **Initial-run logic**
  - The entrypoint checks `RUN_ON_START=true` and, if set, invokes `npm start` immediately (without random sleep). This provides an immediate first execution on container startup.
  - Scheduled runs via cron still go through the normal `run_daily.sh` (with sleep and locking).

- **Cron logging and visibility**
  - By redirecting cron job output to the container’s stdout, all logs (initial run and scheduled runs) appear in `docker logs`, avoiding the need to tail log files manually.

- **Error handling and validation**
  - Entry point exits early if `CRON_SCHEDULE` is missing, preventing silent misconfiguration.
  - If the initial run fails, it logs a warning but still starts cron so future scheduled runs can proceed.
  - `run_daily.sh` will exit early if a previous run is still active (locking), avoiding overlapping executions.

* Docker (multi-stage) improvements

- added cron logging in entrypoint and fixed timezone support for cron-invoked script runs
- further optimized multi-stage dockerfile
- bumped playwright version to 1.52.0 in dockerfile and package.json
- added customization and enable/disable randomization for cron start times
- optionally add container health  monitor and resource limits in compose.yaml
2025-07-17 12:16:22 +02:00
TheNetsky
e7c27ac16e Fix login issues for mobile 2025-06-08 18:28:37 +02:00
hmcdat
9f5601d44b Fix 2FA problem on new login page (#305)
* fix 2FA on new login page

* change 2fa login checking element

* temporary disable parallel due to errors when script tries to dismiss buttons
2025-05-30 11:43:15 +02:00
TheNetsky
d5fd06d229 1.5.3
Fix issue with pop-up dismissal
v1.5.3
2025-04-30 16:20:56 +02:00
TheNetsky
0ddc964878 1.5.2
- Updated packages
- Cleanup
- Improved message dismissal
- Improved login functionality

With help from @LightZirconite
v1.5.2
2025-04-24 14:50:22 +02:00
CNOCM
325bf65b30 Update README (#264)
* Update Search.ts

* Update README.md
2025-03-03 10:59:06 +01:00
HMCDAT
6f19bd4b0e Update Dockerfile (#262) 2025-02-28 12:34:47 +01:00
AariaX
caf6a42a38 Make shuffleArray more random? (#254) 2025-02-25 16:14:51 +01:00
TheNetsky
352d47229b Merge branch 'main' of https://github.com/TheNetsky/Microsoft-Rewards-Script 2025-02-24 17:59:28 +01:00
TheNetsky
9a12ee1ec8 Fix geoLocale not being uppercase 2025-02-24 17:59:20 +01:00
Netsky
b630c3ddda Update README.md v1.5.1 2025-02-24 15:52:53 +01:00
Netsky
287e3897da Update README.md 2025-02-24 15:51:08 +01:00
Netsky
fcf6aba446 Bump version 2025-02-24 15:49:45 +01:00
AariaX
1102f2ca94 Google API Update (1.5.1) (#247)
* switch to google internal api

* A bit of tidying up

* A bit more of tidying up

* A bit more of tidying up

* Pre 1.5.1

- Add proxy exclusions
- Update ReadMe
- Update config Interface

---------

Co-authored-by: TheNetsky <56271887+TheNetsky@users.noreply.github.com>
2025-02-24 15:49:19 +01:00
1OSA
82a896e83f added webhooklogexcludefunc (#240) 2025-02-20 23:21:46 +01:00
Netsky
b0bd1f52c4 Update queries.json 2025-02-19 19:32:45 +01:00