Changes
Jump to navigation
Jump to search
← Older edit
MediaWiki:Common.js
52 bytes removed
,
20:04, 7 April 2013
change to user-agent string detection again
{
var ua = navigator.userAgent;
if(
navigator.userAgent
ua
.match(/Android/i
)
)
|| navigator.userAgent
{
if(ua
.match(/
webOS
Mobile
/i
)
)
|| navigator
{
window
.
userAgent
location
.
match
replace
(
/iPhone/i
document.URL + "?useformat=mobile"
)
;
}
}
else if((/webos|iphone
|
ipod
|
navigator.userAgent.match(/iPod/i)
blackberry
|
windows phone
|
navigator.userAgent.match(/BlackBerry
bada
/i)
|| navigator
.
userAgent.match
test
(
/Windows Phone/i
ua
))
{
window.location.replace(document.URL + "?useformat=mobile");
}
}
Cordula
Bureaucrats
,
Administrators
298
edits
Navigation menu
Personal tools
Log in
Namespaces
Message
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version