recentfm.js

Embed your most recently played track from Last.fm

by Robb Knight

Add this to your page replacing foobar with your last.fm username.

<script src="https://recentfm.rknight.me/now.js?u=foobar"></script>

Optionally pass an emoji to replace the headphones:

<script src="https://recentfm.rknight.me/now.js?u=foobar&e=💩"></script>

To style it:

Example: