Skip to content

Instantly share code, notes, and snippets.

@aculich
Forked from camtheman256/export_when2meet.js
Last active March 13, 2024 09:22
Show Gist options
  • Save aculich/b60c9e79e7a1113393127c51701f2d7b to your computer and use it in GitHub Desktop.
Save aculich/b60c9e79e7a1113393127c51701f2d7b to your computer and use it in GitHub Desktop.
Export when2meet data from JS console
function getCSV() {
result = "Time," + PeopleNames.join(",")+"\n";
for(let i = 0; i < AvailableAtSlot.length; i++) {
let slot = $x(`string(//div[@id="GroupTime${TimeOfSlot[i]}"]/@onmouseover)`);
slot = slot.match(/.*"(.*)".*/)[1];
result += slot + ",";
result += PeopleIDs.map(id => AvailableAtSlot[i].includes(id) ? 1 : 0).join(",");
result+= "\n";
}
console.log(result);
return result;
}
copy(getCSV()); // automatically copy results to clipboard
@aculich
Copy link
Author

aculich commented Sep 16, 2022

See upstream discussion thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment