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!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: