diff --git a/scripts/mirror.js b/scripts/mirror.js index ea682cf..e30f42e 100644 --- a/scripts/mirror.js +++ b/scripts/mirror.js @@ -121,6 +121,12 @@ async function main() { console.log(`[mirror] networkidle reached. extra settle…`); await page.waitForTimeout(4000); + // Inject a wide gap before every question after the first — room for our chat block + await page.addStyleTag({ content: ` + .que + .que, .que ~ .que { margin-top: 180px !important; } + `}); + await page.waitForTimeout(500); + // Measure question block positions (document coords, CSS pixels) const quePositions = await page.$$eval('.que', els => els.map(el => {