I'm using the Modify Headers plugin for Firefox in order to change the user-agent. The reason I need to do this (for testing), is to load different css depending on if it is an iOS or Android phone.
Running this script
<script type="text/javascript">
var agent = navigator.userAgent.toLowerCase();
alert(agent);
</script>
I always get this output:
mozilla/5.0 (windows nt 6.1; wow64; rv:26.0) gecko/20100101 firefox/26.0
even though I can see in the following in Thunderbird:
User-Agent: Mozilla/5.0 (iPad; CPU OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko ) Version/5.1 Mobile/9B176 Safari/7534.48.3
Is this a Firefox specific issue?
navigator.userAgent
in order to detect device. – Steven