Created
March 20, 2018 18:17
-
-
Save matteoantoci/9ba8380d90e415614cf7d1cf96c0d55c to your computer and use it in GitHub Desktop.
Select coins on CH
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
(function(win) { | |
const $ = win.jQuery; | |
const symbolsToSelect = ['ETH', 'XMR', 'LTC']; // <-- CUSTOMIZE THIS!! | |
const $selectableCoins = $('.ms-selectable .ms-list li'); | |
const $selectedCoins = $('.ms-selection .ms-list li'); | |
$selectedCoins.click(); | |
const getCoinSelector = (symbol) => | |
$selectableCoins.filter(function() { | |
const text = $(this).text(); | |
return text.endsWith(`(${symbol})`); | |
}); | |
symbolsToSelect.forEach((symbol) => { | |
getCoinSelector(symbol).click(); | |
}); | |
})(window); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment