Skip to content

Instantly share code, notes, and snippets.

@kikorb
Last active February 23, 2022 10:03
Show Gist options
  • Save kikorb/0119a6e10d768c3aebed55beb42bd29d to your computer and use it in GitHub Desktop.
Save kikorb/0119a6e10d768c3aebed55beb42bd29d to your computer and use it in GitHub Desktop.
daily.js
const daily = () => {
// Product
const product = ["Simon Poole-Anderson", "Alex Kouchev", "Claudia", "Jeremy", "Sheree", "Stavros"];
// Team
const support = ["Dean"];
const qa = ["Alexandra", "Manuel Lopez", "Miguel", "Víctor", "Vivian"];
const api = ["Adrian", "Marcin", "Maria", "Simone"];
const ui = ["Manuel Ruano", "Marek", "Tomasz"];
const integrations = ["Amin"];
const core = ["Piotr", "Vlad"];
const data_analytics = ["Azeem", "Jose Gregorio", "Joseph"];
const head_of_engineering = "Michał";
const cto = "Kiko";
const tech = [...support, ...qa, ...api, ...ui, ...integrations, ...core, ...data_analytics, head_of_engineering, cto];
// Open People sidebar
const showAllSelector = "[aria-label='Show everyone']";
document.querySelector(showAllSelector).click();
const intervalId = setInterval(() => {
const content = document.body.textContent;
const missing = [...product, ...tech].filter((name) => !content.includes(name));
if (missing.length === 0) {
console.log("Everyone's there");
clearInterval(intervalId);
} else {
console.log(missing);
}
}, 5000);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment