Last active
December 14, 2015 22:29
-
-
Save ryon/5159151 to your computer and use it in GitHub Desktop.
Bookmarklet to enable zoom on pages that disable it in the viewport meta tag. Not well-tested, seems to work in Safari for iOS 6.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var%20vp=document.querySelector('meta[name=viewport]');if(vp){vpParts=vp.content.split(',');vpParts=vpParts.map(function(v,i,a){if(v.indexOf('user-scalable')>-1){return%20'user-scalable=1';}else{return%20v;}});vp.content=vpParts.join(',');}else{return%20false;}})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment