Update extension-connect.ts
This commit is contained in:
@@ -16,11 +16,9 @@ async function main() {
|
|||||||
console.log(`\nPage URL: ${url}`);
|
console.log(`\nPage URL: ${url}`);
|
||||||
|
|
||||||
const html = await page.content();
|
const html = await page.content();
|
||||||
const lines = html.split('\n').slice(0, 3);
|
const chars = html.slice(0, 30);
|
||||||
console.log('First 3 lines of HTML:');
|
console.log('First chars of HTML:');
|
||||||
lines.forEach((line, i) => {
|
console.log(chars)
|
||||||
console.log(` ${i + 1}: ${line}`);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user