Skip to content

Instantly share code, notes, and snippets.

@yuis-ice
Last active January 20, 2024 15:31
Show Gist options
  • Save yuis-ice/2bf77652680056342c339b8aab0e3cc9 to your computer and use it in GitHub Desktop.
Save yuis-ice/2bf77652680056342c339b8aab0e3cc9 to your computer and use it in GitHub Desktop.
Rewind/forward videos for 1 second on Youtube

Install Autohotkey from here and save following script as tmp.ahk and execute the file by clicking.

You can rewind Youtube videos for 1 second by z and forward Youtube videos for 1 second by x.

WinActive("ahk_exe chrome.exe"): The feature will be only enabled on chrome.exe

WinActive(" - YouTube"): The feature will be only enabled if the window title of the current chrome tab matches to regex - YouTube

SetTitleMatchMode, regex
SetTitleMatchMode, Slow
#If WinActive("ahk_exe chrome.exe") && WinActive(" - YouTube")
z::
send, +<+<+<{left}+>+>+>
return
x::
; msgbox,
send, +<+<+<{right}+>+>+>
return
#If
@Volkiz82
Copy link

Thanks man! That's helped a lot! You're the best!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment