Enhanced Safari Input Zoom Prevention

Prevents iOS Safari zoom on inputs while maintaining accessibility

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
sharmanhall
日安装量
1
总安装量
22
评分
0 0 0
版本
0.2
创建于
2025-01-12
更新于
2025-01-12
大小
3.1 KB
许可证
MIT
适用于
所有网站

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