Mobile view fixed for Wikipedia

I suggested this quick javascript fix for Wikipedia’s recent, and highly annoying, tendency to send my iPhone’s web browser to the Desktop version of pages.

jQuery(document).ready( function($) {
   // Put an onClick handler on the Mobile View link to unset the stopMobileRedirects cookie
   $('a[href$="toggle_view_mobile"]').click(function(){
       document.cookie = "stopMobileRedirect=false; expires=Sun, 01-Jan-2012 00:00:00 GMT; "
                    + "path=/; domain=.wikipedia.org";
      });
});

and today TheDJ and added it as a stopgap fix for everyone on Wikipedia!  Thank you!

Advertisement