Skip to content

Instantly share code, notes, and snippets.

@cryptoeraser
Created January 2, 2019 15:49
Show Gist options
  • Save cryptoeraser/118f256a2036c9167190caa5c604e4dc to your computer and use it in GitHub Desktop.
Save cryptoeraser/118f256a2036c9167190caa5c604e4dc to your computer and use it in GitHub Desktop.
coinigyMarketFilterV1
// Get the parent DOM
x = document.getElementById('marketWatch');
xChildrenLength = x.children.length; // 187
// Structure:
// 0,2,4,6...186 are all even elements and we are not interested in these (these are the folded charts).
// 1,3,6,7...185 are all the odd elements and we nee these (these are the actual rows).
// id="watch_BTRX_ARK_BTC" (n) - even
// id="xchart_BTRX_ARK_BTC" (n+1) - next odd
let myFilter = {
'BTRX': ['XCP', 'LSK', 'SC', 'SNT', 'NPXS']
}
let myArray = ['w-DFG', 'x-DFG', 'w-ABC', 'x-ABC', 'w-XCP', 'x-XCP', 'w-LSK', 'x-LSK', 'w-SC', 'x-SC', 'w-SNT', 'x-SNT', 'w-NPXS', 'x-NPXS', 'x-EEF', 'w-EEF', 'x-GGH', 'w-GGH']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment