I am trying to understand how this code works and why the result is different on an actual mobile device versus desktop: [url removed, login to view] (password: freelancer)
It looks like they are detecting changes in [url removed, login to view] and DeviceOrientationEvent to determine whether the visitor is actually on a mobile device.
I would like to simulate what happens in a mobile device using a browser extension like GreaseMonkey/TapMonkey.
Here is the Tampermonkey script I came up with: [url removed, login to view] (password: freelancer)
However, it doesn't seem to be refreshing the data as quickly as mobile devices.
Try the above Tampermonkey script on this website: [url removed, login to view]
You will notice that it only refreshes the data when you first load the page, or if you switch the tab and go back to it.
Now visit this page on a mobile device and it is constantly updating: [url removed, login to view]
I need you to help me recreate this behaviour, so that we can emulate a mobile device's responses on a desktop device (using Tampermonkey extension).
Here is a video so you get a better understanding:
Desktop: [url removed, login to view]
Mobile: [url removed, login to view] (constantly updating)
Since I have provided all of the codes above, ideally I would like someone to provide me with a recording of the working solution. You can then quote me a price based on how long it took you to create it.
I have created a GitHub issue better explaining the problem: https://github.com/Tampermonkey/tampermonkey/issues/356