Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I've noticed that more and more websites are disabling the ability to zoom on an ipad using Safari (or other mobile browsers, it seems).

Is there a setting to turn this ability off, or some other way to prevent this?

share|improve this question

4 Answers 4

I created a bookmark in Mobile Safari with this url

javascript:document.querySelector('meta%5Bname=viewport%5D').setAttribute('content','width=device-width,initial-scale=1.0,maximum-scale=10.0,user-scalable=1');

The easiest way to setup this bookmark is by:

  1. Add a bookmark to any page
  2. Edit the bookmark and set the url to the url I have above

Now anytime you are on page that you can't zoom then click the bookmark icon and select the bookmark you setup. Then you can pinch and zoom.

share|improve this answer
    
omg. This is amazing. Thank you!! mod up! –  chillin May 10 at 17:53
    
Thanks I appreciate the mod up. –  Scott Walter May 13 at 12:57
    
The bookmarklet is great. For another kind of workaround, see my answer below on enabling the system-wide "three-finger zoom" in the iOS settings. –  Kai Carver May 15 at 12:00

There is not a way to prevent this using Mobile Safari. However, many alternative browsers will let you change the user agent sent to the server, which means you can make it look like you're connecting with a desktop browser instead of a mobile browser. While this will work, I understand it may not be exactly what you're looking for - unfortunately, you can't change the default browser without jailbreaking.

share|improve this answer

There is not a way to stop a website from disabling zoom in mobile Safari. The zoom is disabled in the HTML code like this:

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

To disable this, you would have to have an HTML stripper that removed this HTML from the webpage. You might be able to use a Cydia app, but I haven't found anything that does this.

Your best bet is probably to use an iOS browser that allows you to change the user agent. Most websites insert the HTML above when they detect that your browser is a mobile browser. Some free web browsers include:

A more complete list can be found here.

share|improve this answer

Scott Walter's bookmarklet answer above is an excellent solution.

A different, and more permanent, workaround is to enable Zoom in Settings > General > Accessibility. This enables

  • zooming by double-tapping with three fingers,
  • panning by dragging with three fingers,
  • further zooming in and out by double-tapping with three fingers and dragging up or down.

http://www.456bereastreet.com/archive/201105/ios_tip_how_to_zoom_on_web_pages_that_have_disabled_user_zoom/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.