Commands
- :stpl[ay]
- play or pause
- :stpa[use]
- pause
- :stvolume <VOLUME>
- set to the specified volume.
- :stmu[te]
- turn on/off mute.
- :stre[peat]
- turn on/off mute.
- :stco[mment]
- turn on/off comment visible.
- :stse[ek] <TIMECODE>
- seek to specified position.
TIMECODE formats
label.style.marginRight = (r || 0) + 'px';
- :stse[ek]! <TIMECODE>
- seek to the specified position from current position at relatively.
- :stfe[tch]
- fetch and save the video.
- :stla[rge]
- enlarge video screen.
- :stfu[llscreen]
- turn on/off fullscreen.
- :stqu[ality]
- Set video quality.
Local Mappings Sample
function addLocalMappings(buffer, maps) {
maps.forEach(
function (map) {
let [cmd, action, extra] = map;
let actionFunc = action;
extra || (extra = {});
if (typeof action == "string") {
if (action.charAt(0) == ':')
actionFunc = extra.open ? function () commandline.open("", action, modes.EX)
: function () liberator.execute(action);
else
actionFunc = function () events.feedkeys(action, extra.noremap, true);
}
extra.matchingUrls = buffer;
mappings.addUserMap(
[modes.NORMAL],
[cmd],
"Local mapping for " + buffer,
actionFunc,
extra
);
}
);
}
addLocalMappings(
/^(http:\/\/(es|www).nicovideo.jp\/watch|http:\/\/(jp|www)\.youtube\.com\/watch|http:\/\/(www\.)?vimeo\.com\/(channels\/(hd)?#)?\d+)/,
[
['<C-g>', ':pageinfo S', ],
['p', ':stplay', ],
['m', ':stmute', ],
['c', ':stcomment', ],
['zz', ':stlarge', ],
['r', ':strepeat', ],
['+', ':stvolume! 10', ],
['-', ':stvolume! -10', ],
['h', ':stseek! -10', ],
['l', ':stseek! 10', ],
['k', ':stvolume! 10', ],
['j', ':stvolume! -10', ],
['s', ':stseek ', {open: true}],
['S', ':stseek! ', {open: true}],
['v', ':stvolume ', {open: true}],
['V', ':stvolume! ', {open: true}],
['o', ':strelations ', {open: true}],
['O', ':strelations! ', {open: true}],
]
);