Redirects from Spotify song pages directly to the first YouTube song found with that same name.
- Automatic Redirection: When you open a Spotify track URL, the extension will automatically redirect to YouTube and open the first video result for that track.
- Toggle Switch: Enable or disable the automatic redirection with a toggle switch.
- Manual Redirection Button: If the toggle switch is disabled, it's possible to manually redirect the current spotify tab to youtube.
-
Clone the Repository and navigate to the extension directory.
-
Load the Extension in Chrome:
- Open Chrome and go to
chrome://extensions
. - Enable "Developer mode" (toggle switch in the top right).
- Click "Load unpacked" and select the extension directory.
- Open Chrome and go to
-
Enable/Disable Automatic Redirection:
- Click on the extension icon in the Chrome toolbar.
- Use the toggle switch to enable or disable the automatic redirection feature.
-
Automatic Redirection:
- When enabled, the extension will automatically redirect any Spotify track URL to YouTube and open the first video result.
To make changes or contribute to the extension:
-
Modify the Files:
background.js
: Contains the background script for handling URL redirection.popup.html
: Contains the HTML for the extension popup.popup.js
: Contains the JavaScript for handling user interactions in the popup.icons/
: Contains the icons used in the extension.
-
Reload the Extension:
- After making changes, go to
chrome://extensions
and click the reload icon next to your extension.
- After making changes, go to
- Icons: Replace
icons/spotify.png
andicons/youtube.png
with your custom icons. - Popup Styling: Modify
popup.html
and the embedded CSS to change the appearance of the popup and toggle switch.
This project is licensed under the MIT License.
- Chrome Extensions Documentation: For detailed information on building Chrome extensions.
- Spotify Web API: For the Spotify API documentation.
- YouTube Data API: For the YouTube API documentation.
For any issues or contributions, please feel free to open an issue or submit a pull request on the GitHub repository.