Xetera / ghost-cursor

🖱️ Generate human-like mouse movements with puppeteer or on any 2D plane
MIT License
1.03k stars 120 forks source link

Associated timestamps with movements for further authenticity #42

Closed aw1875 closed 2 years ago

aw1875 commented 2 years ago

Modified the path return values to also include a random timestamp between 2 and 5 seconds as an added layer of authenticity. Super useful for tasks like hcaptcha requests.

Niek commented 2 years ago

Great work! Small request: can you switch to using yarn instead of npm? So we don't need package-lock.json and also the formatting will be fixed right away.

aw1875 commented 2 years ago

@Niek I've never used yarn but I would have no problems making that switch! And yes sorry it looks like prettifier automatically changed a ton of formatting when I saved. What changes do I need to make to use yarn?

Niek commented 2 years ago

@Niek I've never used yarn but I would have no problems making that switch! And yes sorry it looks like prettifier automatically changed a ton of formatting when I saved. What changes do I need to make to use yarn?

No worries, just install yarn and run yarn, it will lint the files correctly.

aw1875 commented 2 years ago

Just pushed the changes with yarn!

aw1875 commented 2 years ago

@Niek looks like the yarn lock has conflicting node versions is there any way to fix that (again sorry I'm new to yarn)