4 min read

Raycast Meets YouTube: An Extension with New Features for YouTube and YouTube Music

A recent pull request has substantially expanded the existing Raycast extension for YouTube Music. The additions not only enable more precise control of music and video content on YouTube, they also make the integration more stable, more flexible and usable across platforms, for music lovers and power users alike.

Alongside the familiar “Like” and “Dislike” behaviour, the extension now also supports removing likes, clear URL-preference control and improved logic for track changes. This is built on a comprehensive pull request by Carlo von Reyher, developed together with other open-source contributors.

Controlling YouTube Music with Raycast


The Additions in Detail

New Feature: “Remove Like”

With the new Remove Like command, users can remove a like from a currently playing track, on both YouTube Music and YouTube. The state of the button is checked beforehand to prevent unintended changes.

The feature is fully HUD-integrated and gives immediate feedback (“Like removed”, “Track not liked”, and so on).

Improved Like and Dislike Logic

The existing Like and Dislike commands have been reworked to avoid accidental double clicks. Before running, the extension now checks whether the song has already been liked or disliked. These commands also provide clear feedback via the Raycast HUD.

Next and Previous Track Control

The commands for skipping and repeating tracks have been thoroughly reworked. The DOM logic was brought up to date so that these commands work reliably on both the classic YouTube web interface and in PWA mode. The logic also takes into account whether the relevant buttons are present, whether a track is playing, and whether a video is restarting.

URL Preference in the Settings

In the Raycast settings, users can now decide which platform the commands should target:

  • YouTube only
  • YouTube Music only
  • Both platforms

YouTube Music with Raycast URL preference

This makes the extension far more adaptable and allows parallel use in multi-tab scenarios.


Technical Reworking

Alongside the functional additions, key architectural components were refactored:

  • The utility function runJSInYouTubeMusicTab was modularised and now checks the correct URL preference.
  • Additional helper functions (escapeJS, getUrlCondition) were introduced to improve the maintainability and readability of the code.
  • The code was optimised for consistent error handling and hardened for edge cases.

Repository hygiene and documentation were also revised in the process:

  • .gitignore was updated
  • CHANGELOG.md documents the new features
  • All commands were successfully linted, tested and validated as a build

Contributors and Community

This update was initiated and implemented by Carlo von Reyher. In addition, we would like to thank the following active contributors, whose work made the extension possible and improved it:

The extension was originally submitted by Daniel Bird and remains available through the official store:

👉 Raycast Extension: YouTube Music


Installation Guide

  1. Open Raycast (⌘ + Space)
  2. Select and open the “Store”
  3. Search for “YouTube Music” in the store
  4. Install the extension
  5. In the Extension Preferences, select the platform you want (YouTube / YouTube Music)
  6. Use the Raycast commands, without switching browsers, straight from your keyboard

Available commands:

  • Like Song
  • Dislike Song
  • Remove Like
  • Next Track
  • Previous Track

Conclusion

The reworked Raycast extension now offers robust, precise and cross-platform control for YouTube and YouTube Music. Thanks to the new features, clear feedback mechanisms and configurable URL preferences, the integration becomes an even more capable tool for everyday workflows, intuitive to use and open to future additions.

For feedback, feature suggestions or technical contributions, the pull request remains open for discussion:

🔗 View Pull Request #18631 on GitHub