Lyfhael / DeleteTweets

Delete / Remove all your tweets
MIT License
584 stars 121 forks source link

Script does not work in Firefox (125.0.2) or Safari (17.3.1). #46

Open organizedslop opened 4 months ago

organizedslop commented 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

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.

HAlafeefi commented 3 months ago

Same here

Christian-Toney commented 3 months ago

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.