10

As someone with vision issues I typically need to zoom on every single page I load on my iPhone.

The "three finger tap" to zoom kinda sucks, so pinch to zoom works great. However since upgrading to iPhone 4S I've noticed a lot of sites don't allow it.

I know there's a meta tag you can use to disable that feature, but is there an override that you can set to be able to zoom on every page? I can't zoom in on google results, so I can't really see them. NFL.com doesn't allow pinch to zoom either.

2
  • 1
    You know, I never thought about it, but I know exactly what you're talking about. Sites that have a "mobile layout", don't allow you to pinch/expand-zoom. That's a really interesting/unfortunate situation. Commented Oct 19, 2011 at 17:23
  • My 3GS was able to zoom, but some mobile layouts dont allow it. It's a meta tag to not allow it and it makes surfing their sites next to useless for me since I can't see it. Really sucks. Commented Oct 19, 2011 at 17:51

3 Answers 3

16

Ugh, this is so annoying -- it is the height of designer/developer arrogance (in my opinion -- and I'm a developer myself). The other answer's code did not work for me, but after much experimenting I got this to work (iPad 3/iOS 5):

javascript:document.querySelector('meta[name=viewport]').setAttribute('content','width=device-width,initial-scale=1.0,maximum-scale=10.0,user-scalable=1');

Use the same method as the other answer says to add it (create a bookmark for any page, then edit the bookmark and replace its URL with the above code).

2
  • I do't think it has anything to do with "designer" but more to force people to view the ads, which are generally along the top or right borders.
    – chris
    Commented Jun 3, 2012 at 15:57
  • This worked for me. The other answer did not. Using iPad mini. Thanks for this.
    – cbmeeks
    Commented Jan 13, 2013 at 1:32
6

You can make a JavaScript bookmarklet to remove the meta tag.

First, press the share button (the icon of the arrow coming out of a box) and press Add Bookmark. Call this “Enable Zoom” or similar. The address box is disabled, but don't worry: there's a way to fix this.

Tap Save, then press the bookmarks button (the book icon), followed by Edit and the bookmark you just made. Now type this in the address box, making sure to not add any spaces:

javascript:void(document.head.removeChild(document.querySelector('meta[name=viewport]')))

Finally, save this and go to a page that prevents zooming. Go to bookmarks and press the bookmark to run it. You should now be able to zoom in and out.

(Tip for iPad users: Turn on the bookmarks bar in Settings, then move the bookmark to the Bookmarks Bar folder to have it always be visible under the address bar.)

2
  • Niffty idea but doesn't work for me. When I save the bookmark, it encodes the brackets - wonder if that might be the problem? Commented Oct 20, 2011 at 16:12
  • @JackMarchetti That happens for me too, but Safari decodes the brackets before running the script. Try changing document.head to document.querySelector('head').
    – kirb
    Commented Oct 20, 2011 at 21:54
3

Make sure Zoom is enabled in Settings > General > Accessibility.

When Zoom is enabled, you can double-tap with three fingers to zoom the entire screen of your iPhone/iPod/iPad. To move around, either hold three fingers on the screen and drag to show different parts in the viewport, or hold one finger along the edge of the screen to pan.

If you need to zoom in more, double-tap with three fingers and drag up or down. To zoom back out, double-tap again with three fingers.

But it gets better: instead of having to double-tap with three fingers to zoom the entire screen of your iPhone, iPod Touch or iPad, it turns out that enabling the Zoom setting also makes Safari ignore any meta name="viewport" scaling settings on the page. You can zoom in and out the normal way by using two fingers.

but is there an override that you can set to be able to zoom on every page?

So basically, the Zoom setting is that override. Enjoy!

Source

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .