fix: inject 180px gap before each subsequent question for chat space
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user