YouTube Viewfinding

Zoom, rotate & crop YouTube videos.

目前為 2025-02-03 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
ctl2
評價
0 0 0
版本
0.0
建立日期
2025-01-10
更新日期
2025-02-03
尺寸
89.7 KB
授權條款
GNU GPLv3
腳本執行於

Controls

Default keybinds are as follows:

ActionKeybind

Pan / Zoom

z

Rotate

\

Crop

z + \     

Reset

x

Configure Script     

left-alt + x


Pans, zooms, rotations and crops are performed via mouse input whilst holding down their keybinds. Input effects are as follows:

Action
Scroll
Left Click
Left Drag
Right Click
Pan / ZoomZoomQuick panPanReset pan & zoom

Rotate

Rotate

Snap to closest multiple of 90°

Rotate

Reset rotation
CropCrop every sideClicking a panel will quick crop. Clicking elsewhere will pan and zoom to the cropped video.Dragging a panel will crop. Dragging elsewhere will move the uncropped window.Right clicking a panel will reset its crop. Right clicking elsewhere will reset all crop.



Interfaces

Pan/zoom and rotate use a crosshair interface. The pan/zoom interface displays zoom level followed by coordinates. The rotation interface shows the video's current angle alongside the angle that will be snapped to on click.

In the crop interface, crop is represented by grey panels that extend from the edges of the video. These panels may be dragged to alter crop. Panels for uncropped sides are dragged via transparent handles at the video's edges.

Interfaces, behaviour and controls are all configurable.


Miscellaneous

  • The script only has an effect on video pages (URL is youtube.com/watch?v=...).
  • Tested on Chrome, Edge & Firefox; seems to work everywhere but lmk if not.
  • Videos are given a glow, similar to YouTube's "ambient mode" but confined within the video player. This can be turned off by unchecking the "Glow" box in the config menu.
  • Check the "Toggle?" box under "Keybinds" in the config menu to avoid having to hold down keys. Some touchpads behave strangely whilst keys are held.
  • When in fullscreen mode, Chrome obstructs the very top of the screen. This can prevent dragging the top crop handle. Increasing handle size in the config menu may help.
  • A reset may be undone by immediately hitting the reset button again. Useful for peeking the video in its unaltered state.
  • The script's config menu is huge. Click on the top box (above "Controls") to navigate it like a file system rather than a huge list. If needed, I can set up help pages or videos to show what everything does.
  • On and off, I've spent a few years of my life working on this script, including a year of unemployment to get it finished. If you want to show your appreciation and have the means, please donate to the Palestine Children's Relief Fund & tell me via feedback.