Suljettu

JavaScript Mobile Sensor Emulation (using GreaseMonkey/Tampermonkey)

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

Taidot: Javascript

Näytä lisää: telnet emulation javascript, click emulation javascript, javascript emulate, delete record using sql mobile edition vbnet, javascript emulate user click, javascript emulate click link, javascript emulate bookmark click, using google analytics without javascript disabled, java upload video using rtsp mobile, send video streams using rtsp mobile j2me, using sql mobile net, sample using sql mobile edition, using sql mobile application, projects developed using web technology html javascript, javascript emulate click, javascript xml array, javascript counter timer, javascript daily prayer time, scroll javascript sample, javascript total forms page, javascript scrollable panel, snow javascript, remove tags text javascript, javascript wordpress post, shirt design javascript

Tietoa työnantajasta:
( 7 arvostelua ) Toronto, Canada

Projektin tunnus: #13084434

4 freelanceria on tarjonnut keskimäärin 383 $ tähän työhön

scriptphp87

Hello, I'm a professional programmer for web programming with php language to build the system website, Besides, I'm also expert in MySQL , HTML,HTML5,CSS, JS I'm always top in Vietnam freelancer [url removed, login to view] Lisää

277 $ USD 7 päivässä
(41 arvostelua)
6.4
webbookstudio

Hello, my name is Olya. I represent Ukrainian IT Company «Webbook». We provide website design and web and app development services for organizations, public and government institutions, company or private web-pages. Lisää

250 $ USD 20 päivässä
(7 arvostelua)
5.8
ITBUGOFF

Check out our portfolio at [url removed, login to view] we've done over 50 projects world wide and all successfully. You may always contact me personally with any questions/concerns and I'll be more than happy to assist you. Any so Lisää

1000 $ USD 21 päivässä
(3 arvostelua)
4.3
aramgz

A proposal has not yet been provided

250 $ USD 3 päivässä
(1 arvostelu)
3.0
mastor31

Hi, The problems are- 1. Chrome aggressively throttle background tabs 2. The page [url removed, login to view] has error in js in line-46. There is no 'event' variable in current scope, it w Lisää

30 $ USD 0 päivässä
(1 arvostelu)
0.6