-
-
Save aculich/b60c9e79e7a1113393127c51701f2d7b to your computer and use it in GitHub Desktop.
Export when2meet data from JS console
This file contains 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 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See upstream discussion thread.