This script creates additional spotify buttons on the website rateyourmusic.
In order for this to work, you have to specify a link in line 49. (replace "https://openuserjs.org"). This link will be opened in the same window when the button is pressed.
One usecase for this is to set the link to add the album to your spotify playlist. This can be done by creating a custom URL protocol (How-to for windows). The variable album_id can be used with the spotify API.
Only tested on firefox with violentmonkey.