Skip to content

Instantly share code, notes, and snippets.

@michaelgira23
Last active April 19, 2019 17:06
Show Gist options
  • Save michaelgira23/4e666662f3fe5d114fa9e7691428e741 to your computer and use it in GitHub Desktop.
Save michaelgira23/4e666662f3fe5d114fa9e7691428e741 to your computer and use it in GitHub Desktop.
Veracross Get Student Count
let emails = [];
$('.directory-Entry_FieldLink').each((i, elem) => {
const mailto = $(elem).attr('href');
const parts = mailto.split(':');
if (parts[0] === 'mailto' && parts[1].endsWith('@micds.org')) {
emails.push(parts[1]);
}
});
console.log('[\'', emails.join('\', \''), '\']');
// Step 1: Go to directory, scroll down, and load pictures of all students from the grade
// Step 2: Run this in the JS console
$('.directory-Entry').length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment