User:Sillygwailo/monobook.js

// ############ iPhone ############## if (/iphone/i.test(navigator.userAgent)) { function listenOrientation {   var orientation = window.orientation % 180 ? "landscape" : "portrait"; window.scrollTo(0, 1); document.body.className = document.body.className.replace(/(portrait|landscape)/, '')+' '+orientation; } addEventListener("load", listenOrientation, false); addEventListener("orientationchange", listenOrientation, false); }