Double Ctrl to zoom images like Edge browser
This userscript reproduces the Microsoft Edge double Ctrl image zoom feature in any browser (Tested: Chrome, Brave).
When you press the Control key twice quickly (within 400 ms) while hovering over an image,
the image will pop out in a centered overlay with a darkened background. (Just like Edge’s built-in feature if you have seen before).
<img> element to zoom it up.DOUBLE_PRESS_INTERVAL – time (in ms) allowed between Ctrl presses (default: 400).overlayDiv styling – change background color, blur, or opacity as you like.maxWidth / maxHeight – control how large the zoomed image can get.
No data is collected. Everything runs locally in your browser.
The script works purely with client-side JavaScript and does not contact any external services.
Created by emberasim - with a little help from GPT-5 (Web Content) ✨