can I control (play & pause) a Spotify Play button with a browser extension?
The play button is inside an iframe. If browser extensions can get at content inside iframes, then I guess so.
This question is quite generic - why don't you give it a try and find out?