您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Adds zoom support for opened photos on messenger.com
当前为
This userscript enhances the photo viewing experience in Messenger's modal view (messenger.com
)
by adding advanced photo manipulation tools. It supports zooming with the zoom operation centered at the
mouse pointer (keeping the point under the cursor fixed) and allows for dragging (panning) the image around.
A fixed control bar is available at the top of the screen offering manual zoom in, reset, and zoom out options.
+
(Zoom In), 🔍
(Reset), and -
(Zoom Out).z-index
is applied to the image to ensure that it
The script continuously monitors Messenger's DOM for when a modal photo is active—determined by the presence of visible "Next photo" or "Previous photo" buttons.
Once a modal is active, the script attaches event listeners to the photo element (which is identified by its blob:
URL) and:
z-index
on the image. This guarantees that the photo stays on top and visible even if Messenger adds overlays.z-index
method does not work as expected due to future layout changes, check for script updates.Enjoy your enhanced Messenger photo viewing experience!