Skip to content

Instantly share code, notes, and snippets.

@oerpli
Last active August 3, 2016 13:53
Show Gist options
  • Save oerpli/ac1851a71970b3bcdbb6 to your computer and use it in GitHub Desktop.
Save oerpli/ac1851a71970b3bcdbb6 to your computer and use it in GitHub Desktop.
Changes title - artist back to artist - title on user pages. deprecated as of 24.9.15 as lastfm switched it back. use this addon to make it title - artist now.
// ==UserScript==
// @name unfucklastfm
// @namespace uflfm
// @description change artist and title
// @include http://www.last.fm/*/user/*
// @include http://www.last.fm/user*
// @author oerpli
// @version 1.2
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// ==/UserScript==
$('.chartlist-name').each(function (index) {
var x = $(this).eq(0).children().children();
x.eq(2).insertBefore(x.eq(0));
x.eq(1).insertBefore(x.eq(0));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment