cela
January 3rd, 2011, 05:10 PM
I was wondering how I could do several things in JavaScript:
1. Detect the browser viewing the page
2. Use a different stylesheet for mobile browsers.
3. Create a greasemonkey script to do this to sites not optimized for mobile devices
I know mobile devices don't support greasemonkey, at least not yet, but I would appreciate some help in doing those things. I already know some JavaScript, but only things that aren't JavaScript specific. I don't know much about interacting with the browser yet. Thanks!!
cela0811
(Yes, I am cela0811. I was having login troubles. It wouldn't accept my email when I tried to reset my password, and told me I was wrong when I said that the average human has 2 ears. Ugh.)
1. Detect the browser viewing the page
2. Use a different stylesheet for mobile browsers.
3. Create a greasemonkey script to do this to sites not optimized for mobile devices
I know mobile devices don't support greasemonkey, at least not yet, but I would appreciate some help in doing those things. I already know some JavaScript, but only things that aren't JavaScript specific. I don't know much about interacting with the browser yet. Thanks!!
cela0811
(Yes, I am cela0811. I was having login troubles. It wouldn't accept my email when I tried to reset my password, and told me I was wrong when I said that the average human has 2 ears. Ugh.)