A userscript to add lyric support for Youtube Music.
Click on the lyrics area to toggle fullscreen mode
- Left click to toggle lyrics
- Right click to change the source of lyrics
- Middle click to toggle Chinese translation
- Clone this repo
- Edit
.env
file, changeCLOUDMUSIC_API
(Host it by yourself) andMUSIXMATCH_USERTOKEN
(You can find it when using Spotify) to yours - Run
npm install
andnpm run build
- Import
dist/ytml.user.js
to Tampermonkey - Done 🎉
- Use
MutationObserver
to listen events - Fetch lyrics using
NeteaseCloudMusicApi
andmusixmatch
- Render lyrics with javascript!