Skip to content

Instantly share code, notes, and snippets.

@kcarnold
Last active January 28, 2025 19:41
Show Gist options
  • Save kcarnold/acafea2e68eb715cdf3d979e32537c7d to your computer and use it in GitHub Desktop.
Save kcarnold/acafea2e68eb715cdf3d979e32537c7d to your computer and use it in GitHub Desktop.
when2meet: uncover uncommon availability
// On a when2meet poll that has already been filled out:
//
// 1. Right-click the timeslot corresponding to the first time you chose and click Inspect. (If you don't see that, turn on your browser devtools.)
// 2. Find the attribute that looks like data-time="279900000". Use that number for the "slot id" when prompted.
// 3. Copy and paste this script into the browser Console.
//
// You'll now see the availability of everyone who was *not* available at the first time you chose.
// Find everyone available then
slotId = +prompt("Slot id?"); // find this by right-click on the slot element in the right-side view
peopleAvailableThen = AvailableAtSlot[TimeOfSlot.indexOf(slotId)]
// Exclude them from AvailableAtSlot
oldAvailableAtSlot = AvailableAtSlot;
AvailableAtSlot = AvailableAtSlot.map(slot => slot.filter(id => !peopleAvailableThen.includes(id)));
oldAvailableIDs = AvailableIDs;
AvailableIDs = AvailableIDs.filter(id => !peopleAvailableThen.includes(id));
// Update everything
ReColorGroup();
@kcarnold
Copy link
Author

Note: names are stored in PeopleNames; the id corresponding to each name is stored in PeopleIDs.

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