Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Removes unavailable and preview albums from rdio. This is particularly useful after using the "Sync" feature, since it's useless and generates hundreds of "Unavailable" albums. Scroll to the bottom of your collection first, since it's lazy loaded.
(function(){
var i = 0;
var count = $('.Album.unavailable,.Album.preview').length;
console.log('Found ' + count + ' albums to remove');
var timeout = 0;
$('.Album.unavailable,.Album.preview').each(function(){
var instance_i = i++;
var album = $(this);
album.trigger('mouseover').mouseenter();
album.find('a,div,span,image').trigger('mouseover').mouseenter();
setTimeout(function(){
var album_menu = album.find('.ActionMenu');
album_menu.click();
setTimeout(function(){
$('.Menu').each(function(){
var menu = $(this);
if (menu.css('top').substring(0,1) != '-' && menu.find('.delete').length > 0) {
console.log("removing " + album.find('.album_title').text() + '(' + instance_i + '/' + count + ')');
var delete_button = menu.find('.delete');
delete_button.click();
setTimeout(function(){
$('#header').click();
}, 300);
}
});
}, 500);
}, timeout);
timeout += 2500;
});
})();
@rnmp

This comment has been minimized.

Copy link

rnmp commented Apr 11, 2013

Brilliant! Thank you.

@MikeKlemarewski

This comment has been minimized.

Copy link

MikeKlemarewski commented May 21, 2013

Thanks a lot for this! Worked like a charm

@andersonfreitas

This comment has been minimized.

Copy link

andersonfreitas commented Jul 9, 2013

great!

@sawyerbernath

This comment has been minimized.

Copy link

sawyerbernath commented Aug 17, 2013

Worked pretty well for me too! Thanks so much.

@Sibicle

This comment has been minimized.

Copy link

Sibicle commented Sep 24, 2013

Still works! If you are having trouble I would recommend pausing whatever song is playing, closing Chrome, then opening again and running the script.

@bilke

This comment has been minimized.

Copy link

bilke commented May 23, 2014

Rdio should hire you!

@EllenaLawrence

This comment has been minimized.

Copy link

EllenaLawrence commented Nov 18, 2014

Just a heads up that this doesn't work any more :(

@stevenplewis

This comment has been minimized.

Copy link

stevenplewis commented Nov 6, 2015

This is exactly what I need! Anyone have a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.