I have various Javascript at the start of some pages that: 1-Check what screen size you are using amd redirects if you have accessed from a mobile phone to a mobile phone site etc. 2-Redirects if using old browser - i.e IE5 3-Checks what coulour depth they are using - i.e 8,16,32 (if colour depth is less than 16 I redirect to text only site.) What will the Robot think to this? Will it read the js and for example interpet the colour depth as 0 (i.e he has no monitor) - or will it be ignored?
normally, googlebot will ignore any content in <script></script> but, I trust, and heard, has another script bot in google will excute your script and see if have some trick inside to hidden text or redirect or something. So I sure google will know your script and what it for ,but I cannot sure what will happen next