This file contains hidden or 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
/* idea by sunil12738, authored by Google Gemini Pro */ | |
(function() { | |
/** | |
* Recursively traverses the DOM from a given starting element | |
* and collects all unique CSS class names. | |
* | |
* @param {HTMLElement} startElement The starting element to traverse from. | |
* @returns {string[]} An array of unique class names found. | |
*/ |
This file contains hidden or 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
const https = require('https'); | |
const { exec } = require('child_process'); | |
let slotFound = false | |
function poll() { | |
const apiCall = setInterval(() => { | |
console.log(`${new Date}: polling`) | |
fetchSlots() | |
if (slotFound) { | |
clearInterval(apiCall) |