Tuesday, February 25, 2014

Re-enable Safari's Pinch to Zoom in iOS!

Here is a quick code snippet to override the moronic web developers who see fit to disable Pinch to Zoom in iOS. 

Create a bookmark from any page. Rename it "Zoom" or something appropriate. Save the bookmark. Go back and edit the bookmark. Find the address field and replace the URL with: 
javascript:document.querySelector('meta[name=viewport]').setAttribute('content','width=device-width,initial-scale=1.0,maximum-scale=10.0,user-scalable=1');
Whenever you come across a page that has disabled Pinch to Zoom simply tap the newly created bookmarklet and you are good to go.

Besides being very useful in general, Pinch to Zoom is an Accessibility feature used by people with poor vision. Purposely disabling it is idiotic.
 

No comments: