Skip to content

Instantly share code, notes, and snippets.

@arcatdmz
Created December 24, 2016 07:29
Show Gist options
  • Save arcatdmz/e957fee5a840c5617ad95473fd611675 to your computer and use it in GitHub Desktop.
Save arcatdmz/e957fee5a840c5617ad95473fd611675 to your computer and use it in GitHub Desktop.
// execute this code in the debug console to extract chair names from the CHI 2017 website.
// https://chi2017.acm.org/select-subcommittee.html
var chairs = [];
document.querySelectorAll('span.MyBolding').forEach((e) => {
if (e.childNodes[0].data == 'Subcommittee Chairs' || e.childNodes[0].data == 'Associate Chairs') {
var p = e.parentElement;
while (p.nextSibling) {
p = p.nextSibling;
if (! p.children || p.children.length <= 0) {
if (p.childNodes && p.childNodes[0]) chairs.push(p.childNodes[0].data);
continue;
}
if (p.children[0].className == 'MyBolding') break;
}
}
});
chairs.filter((x, i, self) => self.indexOf(x) === i && x.trim().length > 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment