Created
August 15, 2015 12:42
-
-
Save sorah/b507050a9f6e0114d5d0 to your computer and use it in GitHub Desktop.
This file contains 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
list = [["1","11902890"],["1","11914595"],["1","11914595"],["1","11904467"],["1","11917252"],["1","11930198"],["1","11930310"],["1","11931848"],["1","11931875"],["1","11932162"],["1","11938518"],["2","11905329"],["2","11918720"],["2","11906815"],["2","11911206"],["2","11922753"],["2","11930574"],["4","11901300"],["4","11908444"],["4","11909963"],["4","11916328"],["4","11918340"],["4","11921085"],["4","11923998"],["4","11925481"],["5","11905977"],["5","11909038"],["5","11910049"],["5","11910634"],["5","11912582"],["5","11913257"],["5","11913571"],["5","11916392"],["5","11918917"],["5","11923086"],["5","11924090"],["5","11927286"],["5","11932706"],["5","11934520"],["6","11905621"],["6","11909303"],["6","11915557"],["6","11915651"],["6","11917529"],["6","11923592"],["7","11913996"],["7","11902000"],["7","11912958"],["7","11913421"],["7","11920295"],["9","11907585"],["9","11916644"],["9","11928610"],["9","11931961"]] | |
list.forEach(function(v) { var elem = $('.webcatalog-favorite-dialog-color input[data-webcatalog-favorite-circleid="' + v[1] + '"][value="' + v[0] + '"]')[0]; if (elem) { elem.click(); console.log(v) } else { console.warn(v) } }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment