I maintain a fairly large userscript (sureclaim.js) that runs in Tampermonkey and automates Cloudflare Turnstile interactions. After a recent refactor it now throws a mix of syntax and runtime errors that halt execution, break the async retry loops, and stop new tokens from being generated or reused. You’ll receive the full script plus the Turnstile-protected site we target. I already have a set of test cases that reproduce the crashes, check token lifetimes, and verify the claim flow end-to-end, so you can run them locally to confirm fixes. Your task is straightforward: • Hunt down and correct every syntax or reference error so the userscript loads cleanly in Tampermonkey (Chrome and Firefox). • Stabilise all Promise-based sections: token generation, pooling, expiry checks, and the automated claim queue must run continuously without uncaught rejections. • Make sure the retry/back-off logic behaves predictably under network hiccups and rate-limits. • Return a cleaned, commented version of sureclaim.js plus a brief changelog showing what you touched. Acceptance criteria – My supplied test cases pass without modification. – No uncaught errors appear in the browser console during a 30-minute continuous run. – Token pool never drops to zero while the site is reachable. If you’re comfortable debugging complex async flows in userscripts and have dealt with Turnstile before, this should be a quick win. Send over an ETA and any questions, and I’ll share the repo and test suite right away.