This took me way to long to figure out, but I took on this idea and got something to work (as of now). This is also my first script, so ignore the bad code.
Note: This only works with URL search (as in, directly entering the URL from your browser). Trust me, I tried figuring out searching Google Play directly, and that doesn't work. If anyone wants to improve on this script, go ahead.
This script does have a few issues:
- If your URL has
&tid=song at the end of it, the script fails. Remove it and everything works just fine.
- Track listings might glitch out and show blank songs. Leave everything the way it is and it'll work just fine. I think this is due to my regex that's being used to get track names.
Edit: It was the regex. I fixed it thanks to a post on StackExchange (Regular Expression: Allow letters, numbers, and spaces (with at least one letter or number)). Also, since I don't want to constantly update this post with any fixes that might happen, here's the same script hosted on GitLab (download it instead).