Open organizedslop opened 4 months ago
In Firefox (125.0.2), the script throws the error: Uncaught SyntaxError: await is only valid in async functions, async generators and modules
Uncaught SyntaxError: await is only valid in async functions, async generators and modules
Which can be resolved by wrapping the whole script in an async IIFE: (async () => { SCRIPT_HERE })();
(async () => { SCRIPT_HERE })();
But doing so results in a different error: Uncaught (in promise) TypeError: navigator.userAgentData is undefined
Uncaught (in promise) TypeError: navigator.userAgentData is undefined
In Safari (17.3.1), it throws: SyntaxError: Unexpected identifier 'sleep'
SyntaxError: Unexpected identifier 'sleep'
Just want to throw this out there since, in the prerequisites, you mention that you use Chrome but expect it to work elsewhere.
The script did work as expected for me in Chrome (124.0.6367.119). All of this was done on an M3 MacBook Pro running Sonoma 14.3.1.
Same here
To solve it on Firefox, I just commented out all lines that used the ua variable. Not sure if the sec-ch-ua header is necessary.
ua
sec-ch-ua
In Firefox (125.0.2), the script throws the error:
Uncaught SyntaxError: await is only valid in async functions, async generators and modules
Which can be resolved by wrapping the whole script in an async IIFE:
(async () => { SCRIPT_HERE })();
But doing so results in a different error:
Uncaught (in promise) TypeError: navigator.userAgentData is undefined
In Safari (17.3.1), it throws:
SyntaxError: Unexpected identifier 'sleep'
Just want to throw this out there since, in the prerequisites, you mention that you use Chrome but expect it to work elsewhere.
The script did work as expected for me in Chrome (124.0.6367.119). All of this was done on an M3 MacBook Pro running Sonoma 14.3.1.