Skip to content

Instantly share code, notes, and snippets.

View NightSling's full-sized avatar
:electron:
Being fullstack

Sushant Pangeni NightSling

:electron:
Being fullstack
View GitHub Profile
@NightSling
NightSling / markhint.js
Last active July 20, 2024 03:33
Add All Question Macro for Markhint
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"));