vimium-c icon indicating copy to clipboard operation
vimium-c copied to clipboard

rewind and forward using h and l in youtube

Open kbilsted opened this issue 1 year ago • 4 comments

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)

kbilsted avatar Nov 28 '24 18:11 kbilsted

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

eastarpen avatar Dec 03 '24 13:12 eastarpen

You can simply click on the browser extension symbol in your browser and then enter l behind the website click Save changes and are done. The real issue here is that the correct usage of exceptions and rules is not self-explanatory as a) the way the GUI looks makes it seem there is already a rule in place and b) the separation between Add rule and Save changes makes little sense in my eyes.

CouscousPie avatar Jan 06 '25 09:01 CouscousPie

Perhaps standard mappings for major sites should be provided out of the box?

kbilsted avatar Jan 06 '25 15:01 kbilsted

You can use Video Speed Controller, if you don't mind adding another plugin. This plugin is more versatile.

Hunter9812 avatar Apr 11 '25 12:04 Hunter9812