This script allows you to add Last.fm scrobbling support to Google Play/Music. Keep in mind this is a growing project, and there may be bugs introduced by future updated of the Google Play/Music player. If you experience any issues or would like additional features added, please let me know in the comments.
- If you’re using Firefox you’ll fist need to install Greasemonkey and in Chrome you’ll need to first install Tampermonkey. These extensions allow for user scripts to be installed (which is what this script is).
- Download/Install my script* into Greasemonkey or Tampermonkey by following the simple prompts (You may need to restart your browser!).
- Go to your Google Music Player.
- In the top right next to Settings, Sign out, and Help you should now see “Last.fm Requires Authentication.” Click on this and grant access to my script to Scrobble for you from Last.fm. You should then be redirected back to your Google Music Player.
- You’re done! Enjoy.
Sponsor Future Development
- The option for thumbs up clicks to represent a “love” on Last.fm, with the option to turn this feature off.
- Support for Safari and Opera
- Have an idea? Post a comment below.
June 5, 2014
- Fixed a cosmetic bug introduced by an update from Google. (Thank you Charlie C.)
March 10, 2014
- Google changed the DOM structure, updated script to accommodate.
- Fixed a bug preventing the Super Secret Setting from working.
October 18, 2013
- Google changed the DOM structure, which required a quick update to the script so the Last.fm option box would show up again.
October 12, 2013
- Updated the script so it wont float the settings over the new Google header. It should be backwards compatible in the event not everyone has gotten the new update.
August 23, 2013
- Fixed a bug where disabling scrobbling would still scrobble.
- Fixed a bug where an artist with an ampersand (&) wouldn’t post to Last.fm.
July 31, 2013
- Fixed another bug causing duplicate scrobbles; that should be the last of them.
- Fixed a bug where some people were not seeing the love/unlove heart icon.
- Fixed a bug where a song with an ampersand (&) wouldn’t post to Last.fm.
July 11, 2013
- Fixed a bug where duplicate scrobbles would randomly occur for the same song.
July 3, 2013
- Complete rewrite of the script from the ground up to handle the recently introduced (and long outstanding) bugs. If you experience anything strange, please let me know ASAP.
May 15, 2013
- Google released a new player today (it’s pretty neat), but it broke the script. This update primarily fixes that issue (Thank you everyone who reported this bug).
- Added the ability for a single-song repeat to continuously scrobble every time it is listened to. This update was rolled back in a previous version of the script as it was causing some duplicate scrobbles when it shouldn’t have. If anyone experiences duplicate scrobbling in a row, please let me know (Thank you Onur, Gabor, and everyone else who helped test it).
- Added album to the scrobbling data passed to Last.fm, so now you should see album art work and album data. This feature was made available in the update released by Google (Thanks you Google).
March 9, 2013
- Fixed a bug which was preventing scrobbling. Google updated the DOM of the player, causing Last.fm to not accept scrobbles as the album artist was incorrect. Scrobbles should work again now.
November 27, 2012
- A quick patch put into place to fix a problem with people without Google+ accounts from seeing the settings pane and the ability to authenticate.
- When the player would load it wouldn’t show the settings unless you navigated to another page and then back again. This has been fixed, but I had to disable scrobbling of the album name (it was flukey anyways) until the next release.
June 5, 2012
- Added an option to the Super Secret Setting to play nice with one of the new Labs. But I can’t talk about it, because it’s a secret. (Thank you Cory)
May 14, 2012
- Rolled back the source code to November’s version as it seems the March-May version of the code has a bug I haven’t been able to fix. Until I have a working solution do keep in mind the script will no longer scrobble what album you’re listening to, or allow you to listen to the same song on repeat. I plan on having most of this back in place (after a full re-write) in the next few weeks. If the November script seems to be causing any issues please let me know.
May 12, 2012
- Fixed a bug where songs would stop scrobbling once the album changed for some people. If your player is still having issues with this let me know. (Thank you Daniel)
March 18, 2012
- You can now listen to a single song on repeat until your heart explodes with joy and the script will Scrobble every listen.
- Scrobbling albums now works much better and doesn’t require the script to navigate to the album page on load, but may cause performance issues. In the event you’re experiencing performance issues I’ve added an option in the settings pane to turn off album Scrobbling. Personally with 1335 tracks I’m not seeing any issues in either Firefox or Chrome, but there could be some if you were near the 20,000 maximum. If you are someone who is seeing performance issues please do let me know so I can work with you to get a better optimized release in the future.
March 6, 2012
- Added play.google.com to the list of domains/websites the script runs on, fixing the new update from “Google Music” to “Google Play.” This will require you to update the script to the latest client from this project page. (Thank you Blake)
November 28, 2011
- The new Google+ strip caused display issues for people without Google+ accounts. This bug has been fixed and everyone without a Google+ account should now be able to scrobble and/or authorize their account again.
November 23, 2011
- Google updated the top strip to match the Google+ layout with a black background. I’ve updated the color of the Last.fm text to contrast and match the rest of the Google+ color scheme so the text is readable again. (Thank you Shawn B and Jacob G)
October 7, 2011
- Fixed a bug in Firefox/Greasemonkey where the script would not load the first time you logged into Google Music Beta. Firefox users will need to re-download the script from this project page and install it for the bug to be fixed. Chrome users need not update to the new client script. (Thank you Josh and Nick)
September 28, 2011
- Corrected a compatibility issue which caused the script to fail at loading in Firefox 3.5/3.6 with older versions of Greasemonkey. (Thank you Marcos and Holly)
September 27, 2011
- Changed the way album data is stored locally to optimize the script for users with tens-of-thousands of songs.
September 26, 2011
- Updated the client script to run over HTTPS properly in newer versions of Greasemonkey/Firefox. This change will not require Chrome users to update their script, but it will not hurt if they do. (Thank you Josh)
- Updated the server script to run the Scrobbling commands over whatever HTTP/HTTPS you have accessed Google Music from instead of defaulting to HTTP. This was only causing an issue for some Chrome/Firefox users who typed in “HTTPS” when accessing their Google Music Players. (Thank you Josh and Chris)
September 24, 2011
- Adding Scrobbling of album name. Yay!
- Fixed a bug where multiple Scrobbles could occur in a row under very rare circumstances.
- Increased the speed in which the script looks up rather you’ve previously loved the song by 20x (now 1/4 of a second).
- My server no longer acts as a proxy for Scrobbles, Loves, or Play data allowing for your Last.fm to get updated even faster, and my server not to crash from the large quantity of unexpected users.
July 31, 2011
- Added a “Super Secret Awesomely Helpful Setting” for anyone who has donated towards the efforts of the script’s development. What is the Super Secret Awesomely Helpful Setting? Well, I can assure you it’s very fancy, but telling you wouldn’t make it Super Secret or Awesome would it?
July 28, 2011
- Fixed a bug causing duplicate scrobbling issues, and server slowdown. I’m sorry for anyone who was affected by this. (Thank you Mike)
July 27, 2011
- Added a long awaited settings drop-down menu! Hooray!
- Added “When to Scrobble” as a setting which allows you to specify when during the song it Scrobbles. Defaults to 50%, and has the options: 50, 60, 70, 80, 90.
- Added “Scrobbling: Yes/No” as a setting which allows you to stop Scrobbling until you re-enable it.
- Added the ability to un-authenticate your Last.fm account with the script in the event you want to change it, or for whatever reason.
- Added helpful links to: Donate (hint hint), Contact me (email), Project’s Homepage, and Terms of Service.
- Have other awesome ideas for additional settings? Yes? Well, then try out the “Contact me” link.
June 9, 2011
- Fixed a bug where “Loving” tracks didn’t work sometimes. (Thank you Caleb)
- Fixed a bug where songs or artists containing special characters wouldn’t Scrobble. (Thank you Bryan, Caleb)
- Fixed a bug where the non-existing album art (see: Future Improvements) was pushing to Last.fm as “null” and messing up statistics. Now the album title just isn’t provided, and no statistics on album listens are recorded. Hopefully I’ll find a solution to this soon. (Thank you Doug)
Requirements for a Scrobble
Because I know someone is going to ask, I’m going to put this here. These are the requirements set forth by Last.fm when posting to their servers with a Scrobble. If you don’t see your song marked as being played right away, it’s probably because you haven’t listened to it long enough.
A track should only be scrobbled when the following conditions have been met:
- The track must be longer than 30 seconds.
- And the track has been played for at least half its duration, or for 4 minutes (whichever occurs earlier.)