Skip to content

Instantly share code, notes, and snippets.

@beacrea
Last active June 10, 2016 15:38
Show Gist options
  • Save beacrea/cd1f654c1b07b9402b30 to your computer and use it in GitHub Desktop.
Save beacrea/cd1f654c1b07b9402b30 to your computer and use it in GitHub Desktop.
A script to highlight rdio mixes on designers.mx
// go to https://designers.mx/mixes?page=50
var soundcloud = 'this_has_soundcloud';
var spotify = 'this_has_spotify';
var rdio = 'this_has_rdio';
/* Adds Classes To All Album Parents */
$('.indicator--rdio').closest('.mix--preview').addClass(rdio);
$('.indicator--soundcloud').closest('.mix--preview').addClass(soundcloud);
$('.indicator--spotify').closest('.mix--preview').addClass(spotify);
/* Removes All But Spotify */
var removeAllBut = function(service) {
// $('.mix--preview').not('.' + service).remove();
$('.mix--preview').not('.' + service).hide();
};
removeAllBut(spotify);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment