Skip to content

Skip openings and endings

hikari-skip.lua shows a Skip opening › / Skip ending › button (in your language: Saltar opening › in Spanish, 跳过片头 › in Simplified Chinese...) at the bottom right, above uosc's controls, for as long as playback is inside a chapter that looks like an opening or an ending, even when uosc's controls are hidden or playback is paused. Clicking it, or pressing Alt+s, jumps to the start of the next chapter. Outside those chapters, in files without chapters, while idle and while a uosc menu or the console is open, nothing is drawn and the mouse is left to uosc and mpv.

Chapters are recognised by title, with the same rules uosc uses to colour its chapter ranges: OP, Opening, ... OP, ... Opening and オープニング for openings (only when another chapter follows), ED, Ending, ED ..., Ending ..., ... ED, ... Ending, Credits, Credits ..., ... Credits and エンディング for endings. Titles such as Operation, OP1 or Opening Night do not count; add your own patterns with extra_openings / extra_endings (Lua patterns separated by |, matched against the lower-case title). Intros (Intro, Avant, Prologue, shown as Skip intro ›) are on by default, because many releases name the opening song Intro; turn them off with intros=no. Outros (Outro, Closing, Preview, PV, shown as Skip preview ›) are off by default; turn them on with outros=yes.

When the ending is the last chapter, skipping it moves on to the next playlist entry if there is one; otherwise it seeks to one second before the end, so the file finishes as it normally would.

The button follows the active palette (background and border from uosc's background and foreground, filled with foreground on hover). Position, size and opacity are set in script-opts/hikari-skip.conf. To use another key, bind script-binding hikari_skip/skip in input.conf.