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 timeout(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
async function sleep(fn, ...args) { | |
await timeout(500); | |
return await fn(...args); | |
} | |
async function runMacroA() { | |
let all_questions = [...document.querySelectorAll("h3")].filter((a) => a.innerText.startsWith("Question")); |