Control the YouTube Music tab in the browser with your keyboard.
The extension controls your browser via AppleScript by running JavaScript in the YouTube Music tab. You must enable Allow JavaScript from Apple Events in the browser you select in the extension preferences; otherwise commands will fail (often with "Unknown Error").


After enabling this setting, pick the same browser (or WebCatalog app) in the extension’s Browser where YouTube Music opened preference.
Credit to @alexstrnik for the Yandex Music extension which this extension was based on.
Toggles play or pause of the current track in YouTube Music.
Skips to the previous track in YouTube Music.
Skips to the next track in YouTube Music.
Adds current track to "Liked" collection in YouTube Music.
Removes the current track from your liked songs in YouTube Music.
Removes current track from "Liked" collection in YouTube Music.
Fast forwards the current track in YouTube Music.
Rewinds the current track in YouTube Music.
Skips to the next chapter in YouTube Music.
Skips to the previous chapter in YouTube Music.
runJSInYouTubeMusicTab now wraps runAppleScript in a try/catch block — previously, any AppleScript error (permissions, browser not running, invalid browser selection) was thrown unhandled and swallowed by empty catch blocks in commands, resulting in silent failures or "Unknown Error" HUD messages.handleAppleScriptError function that detects specific failure modes:@raycast/api dependency from ^1.35.1 to ^1.104.0 for compatibility with current Raycast versions."like-clicked", "dislike-not-found") instead of boolean values.switch statements across all commands, providing specific HUD feedback for every outcome.goToChapter) out of utils.ts into individual command files (next-chapter.tsx, previous-chapter.tsx) with more granular error states.runJSInYouTubeMusicTab now throws on errors and shows actionable toasts (with links) instead of silently returning undefined.ErrorMessages, OsaError) from utils.ts.Add fast-forward, rewind, next-chapter, previous-chapter, youtube.com support.
Add search command