Display music title playing in browser, and press to pause/resume

Tried it. Still the same. Sometimes I quit Chrome and it gets brought back automatically by the button script. Sometimes it doesn't.
Have you tried running it in Script Editor. This seems pretty consistently reproducing an issue:

  1. Do not have BTT running. With Chrome and Script Editor closed; Start Script Editor, leave the script window blank and click run, nothing happens;
  2. Open Chrome and access YouTube Music. Paste your script in the Script Editor window, click run, you should get whatever it's supposed to get in the result;
  3. Quit Chrome. Click the Run in Script Editor again, you will see Chrome gets launched