Open main menu

Changes

MediaWiki:Common.js

75 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) !) { if(ua.match(/Mobile/i)) { window.location.replace(document.URL + "?useformat= -1mobile"); } } else if((/webos|iphone|ipod|blackberry|windows phone|bada/i).test(ua))
{
window.location.replace(document.URL + "?useformat=mobile");
/*alert("Small screen detected.");*/
}
}