Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewind and forward using h and l in youtube #1273

Open
kbilsted opened this issue Nov 28, 2024 · 1 comment
Open

rewind and forward using h and l in youtube #1273

kbilsted opened this issue Nov 28, 2024 · 1 comment

Comments

@kbilsted
Copy link

What command or commands

map l scrollRight

How should a feature do

I want to scroll forward using l in youtube and other bigger video sites

When a user has done such steps:

1 insert map l scrollRight
2 goto youtube.com
3 press l

then Vimium C should do:

forward the video

Browser and OS

  • Browser name: chrome
  • OS name: win11

Version 131.0.6778.86 (Official Build) (64-bit)

@eastarpen
Copy link

eastarpen commented Dec 3, 2024

You may need refer to Map a key to different commands on different websites · gdh1995/vimium-c Wiki

Here is an implementation of your request

env youtubeVideo host="https://youtube.com/watch"    # define youtube env
# map l,h to right-arrow and left-arrow (most sites use these two keys to adjust video progress)
map l runKey expect={"youtubeVideo": "<right>"} keys="<v-l>"  
map h runKey expect={"youtubeVideo": "<left>"} keys="<v-h>"
# <v-l> and <v-h> help l,h work like defaulted in other sites
map <v-l> scrollLeft
map <v-h> scrollRight

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants