Write me a javascript function that detects whether you are on a mobile browser or not please
system
mujhe ek javascript fnction likhen jo pataa lagaataa he ki aap mobile brouzar par hai yaa nahin
user
beshak, yahaan ek fnction kaa ek udhaaharan he jo yah pataa lagane ke dauraan sahi yaa galat lautataa he ki yah mobile brouzar main chalaaya ja rahaa he yaa nahin ...

window.mobilecheck = function () {
  var mobileornot = false;
  (samaaroh (e) {
    agar (
      .| MMP | mobile.Symbian | treo | up \ _.
        e
      ) ||
      /1207 | 6310 | 6590.ca | co) | amoi | a (ex | ny | yw) | aptu | ar (ch | go) | as (te | us) | attw | au (di | \ -m | r | r) |.\-| cell | chtm | cldc | cmd \-| co (mp | nd) | cro | da (it | ll | ng) | dbte | dc \ -s | devi | dica | dmob | do (c | p) do (c | p).o | ds (12 | \ -d) | el (49 | ai) | em (l2 | ul) | er (ic | k0) | esl8 | ez ([4-7] 0 | os | wa | ze) |FETC | fli (\-| _) | g1 u | g560 | gene | gf \ -5 | g \ -mo | go (\ | w | od) | gr (ad | un) | haie | hcit | hd \--hd \ _.) | tp) | hu (aw | tc) | i \-(20 | go | ma) | i230 | iac (| \-| \/) | ibro | ide | ig01 | ikom | im1k | ino || Ja (t | v) a | jbro | jemu | jigs | kddi | keji | kgt (| \/) | klon | kpt | kwc \ _g | \/(k | l | u) | 50 | 54 | \ _-[a-w]) | libw | lynx | m1 \ -w | m3ga | m50 \/| ma (te | ui | Xo) | mc (01 (01|.0 (0 | 1) | 10) | ne ((c | m) \-| on | tf | wf | wg | wt) | nok (6 | i) | nzph | o2im | op (ti | wv) | oran || owg1 | p800 | pan (a | d | t) | pdxg | pdxg | pg (13 | \-([1-8] | c)) | phil | pire | pl (ay | uc) | pn \ -2 |.| r600 | raks | rim9 | ro (ve | zo) | s55 \/| sa (ge | ma | mm | mm | ms | ny | va) | sc (01 | h \-| oo | p \-)/| se (c (\-| 0 | 1) | 47 | mc | nd | ri) | sgh \-.00 | 10 | 18) | ta (gt | lk) | tcl \-| tdg \-| tel (i | m) | tim \-| t \ -mo | to (pl | sh) | ts (70 | m |\-| M3 | M5) | Tx \ -9 | UP (\ _ B | G1 | Si) | Utst | V400 | V750 | Veri | VI (rg | Te) | vk (40 | 5 [0-3] |\ -v) | vm40 | voda | vulc | vx (52 | 53 | 60 | 61 | 61 | 70 | 80 | 81 | 83 | 85 | 98) | w3c (\-|) | webc | whit | wi (g | nc | nw) | wmlb | winu | x700 | yas \-| your | zeto | zte \-/i.test (
        A.Substr (0, 4)
      )
    )
      MobileOrNot = True;
  }) (navigator.useragent || nevigator.wendor || window.opera);
  MobileOrNot lauten;
};
assistant
<|system|>
</s>
<|user|>
mujhe ek javascript fnction likhen jo pataa lagaataa he ki aap mobile brouzar par hai yaa nahin</s>
<|assistant|>
beshak, yahaan ek fnction kaa ek udhaaharan he jo yah pataa lagane ke dauraan sahi yaa galat lautataa he ki yah mobile brouzar main chalaaya ja rahaa he yaa nahin ...

window.mobilecheck = function () {
  var mobileornot = false;
  (samaaroh (e) {
    agar (
      .| MMP | mobile.Symbian | treo | up \ _.
        e
      ) ||
      /1207 | 6310 | 6590.ca | co) | amoi | a (ex | ny | yw) | aptu | ar (ch | go) | as (te | us) | attw | au (di | \ -m | r | r) |.\-| cell | chtm | cldc | cmd \-| co (mp | nd) | cro | da (it | ll | ng) | dbte | dc \ -s | devi | dica | dmob | do (c | p) do (c | p).o | ds (12 | \ -d) | el (49 | ai) | em (l2 | ul) | er (ic | k0) | esl8 | ez ([4-7] 0 | os | wa | ze) |FETC | fli (\-| _) | g1 u | g560 | gene | gf \ -5 | g \ -mo | go (\ | w | od) | gr (ad | un) | haie | hcit | hd \--hd \ _.) | tp) | hu (aw | tc) | i \-(20 | go | ma) | i230 | iac (| \-| \/) | ibro | ide | ig01 | ikom | im1k | ino || Ja (t | v) a | jbro | jemu | jigs | kddi | keji | kgt (| \/) | klon | kpt | kwc \ _g | \/(k | l | u) | 50 | 54 | \ _-[a-w]) | libw | lynx | m1 \ -w | m3ga | m50 \/| ma (te | ui | Xo) | mc (01 (01|.0 (0 | 1) | 10) | ne ((c | m) \-| on | tf | wf | wg | wt) | nok (6 | i) | nzph | o2im | op (ti | wv) | oran || owg1 | p800 | pan (a | d | t) | pdxg | pdxg | pg (13 | \-([1-8] | c)) | phil | pire | pl (ay | uc) | pn \ -2 |.| r600 | raks | rim9 | ro (ve | zo) | s55 \/| sa (ge | ma | mm | mm | ms | ny | va) | sc (01 | h \-| oo | p \-)/| se (c (\-| 0 | 1) | 47 | mc | nd | ri) | sgh \-.00 | 10 | 18) | ta (gt | lk) | tcl \-| tdg \-| tel (i | m) | tim \-| t \ -mo | to (pl | sh) | ts (70 | m |\-| M3 | M5) | Tx \ -9 | UP (\ _ B | G1 | Si) | Utst | V400 | V750 | Veri | VI (rg | Te) | vk (40 | 5 [0-3] |\ -v) | vm40 | voda | vulc | vx (52 | 53 | 60 | 61 | 61 | 70 | 80 | 81 | 83 | 85 | 98) | w3c (\-|) | webc | whit | wi (g | nc | nw) | wmlb | winu | x700 | yas \-| your | zeto | zte \-/i.test (
        A.Substr (0, 4)
      )
    )
      MobileOrNot = True;
  }) (navigator.useragent || nevigator.wendor || window.opera);
  MobileOrNot lauten;
};</s>
