User:Designboy/common.js

jQuery(document).ready( function($) { // If this is (an iPhone or an iPod) and this is not a Wikipedia mobile page, then...  if (((navigator.platform.indexOf("iPhone") != -1) || (navigator.platform.indexOf("iPod") != -1)) && window.location.hostname.indexOf(".m.wikipedia.org") == -1 ){      // ... set stopMobileRedirects cookie to false. The next click on the "Mobile View" link       // at the bottom of the page (it's on every page), will then switch to the mobile view.       document.cookie = "stopMobileRedirect=false; expires=09-Aug-2012 00:00:00 GMT; path=/; domain=.wikipedia.org";  } });