Moballo-LLC / tvOS-Browser

A web browser for Apple TV utilizing private APIs. Use at your own risk.
http://moballo.com
108 stars 17 forks source link

Username Password Login #18

Open WolfThatMoos opened 1 year ago

WolfThatMoos commented 1 year ago

I've attempted to log into various websites including a private instance of overseerr, and on any of these pages it errors when attempting to login with invalid/or empty credentials. Obviously login credentials are correct.

This problem is also reported as issues on jvanakker's repo as well. I was hoping this could be looked into.

Similarly Reported Issue #1 Similarly Reported Issue #2 Similarly Reported Issue #3

Jason-Morcos commented 1 year ago

I think websites probably don't like the cursor moving like it does and are blocking the activity as "potentially a bot". Probably no good way around this, unfortunately, unless Apple really allows browsers on the TV

thenonameguy commented 5 months ago

The problem was the Javascript code was doing inputDomElement.value = 'textEntered';. While this works for PHP-era HTML forms, the brave new world embraced React and friends, with controlled input components.

For that, you have to simulate the whole typing experience. I've based my implementation off of Puppeteers page.type code.

Please try it out on my fork: https://github.com/schemamap/tvOS-Browser

Happy to upstream if it solves your issues @WolfThatMoos. Worked well for me for Grafana login.

Jason-Morcos commented 5 months ago

Very cool! Happy to review a PR if you want to open it!