Enhanced Safari Input Zoom Prevention
Description
This userscript prevents iOS Safari from automatically zooming in on form input fields while maintaining accessibility and usability. It's particularly useful for iOS 15+ where automatic zooming can be disruptive to the user experience.
Features
- Prevents unwanted zoom on all form inputs (text fields, textareas, and select elements)
- Maintains accessibility with proper font sizing (16px minimum)
- Handles dynamically added form elements
- Includes responsive design considerations
- Works across different iOS versions
- Preserves usability on both mobile and desktop devices
Technical Details
- Properly configures viewport meta tag
- Uses MutationObserver for dynamic content
- Implements responsive CSS with media queries
- Excludes button-type inputs from font-size modifications
- No external dependencies
Compatibility
- iOS Safari (15+)
- Works on all websites (*://*/*)
- Compatible with other userscripts
Installation
1. Install a userscript manager (like Tampermonkey) if you haven't already
2. Click the "Install" button on this page
3. Confirm the installation in your userscript manager
Support
If you encounter any issues or have suggestions for improvements, please report them in the feedback section below. As this is an open-source project, contributions are welcome!
Author
Created by sharmanhall
License
MIT License - Feel free to modify and share!
Version History
- v0.2 - Enhanced version with improved compatibility and dynamic element handling
- v0.1 - Initial release with basic zoom prevention