Last active
June 10, 2016 15:38
-
-
Save beacrea/cd1f654c1b07b9402b30 to your computer and use it in GitHub Desktop.
A script to highlight rdio mixes on designers.mx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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