Extend image zoom modes with scale-to-width and scale-to-height of window
这些是此脚本的所有版本。 只显示代码变更过的版本。
Fixed weird behavior in Firefox. Apparently it too now needs a stopPropagation :/
What the fuck, Mozilla? In Firefox 96, document.body.clientHeight always is 0 for pictures. Fixed by using a different source for height.