Changes

Jump to navigation Jump to search

MediaWiki:Common.js

71 bytes added, 20:04, 7 April 2013
change to user-agent string detection again
if(document.URL.search("mobile") == -1)
{
var size ua = windownavigator.getComputedStyle(document.body,':after').getPropertyValue('content')userAgent;
if (sizeua.indexOfmatch('smallscreen'/Android/i) != -1)
{
if(ua.match(/*Mobile/i)) { window.location.replace(document.URL + "?useformat=mobile");* } } else if((/webos|iphone|ipod|blackberry|windows phone|bada/i).test(ua)) { /*alertwindow.location.replace(document.URL + "Small screen detected.?useformat=mobile");*/
}
}

Navigation menu