forked from fair/matrix-puppeteer-line
14 lines
316 B
JavaScript
14 lines
316 B
JavaScript
|
import puppeteer from "puppeteer"
|
||
|
|
||
|
(async () =>
|
||
|
{
|
||
|
const pathToExtension = "extension_files"
|
||
|
const browser = await puppeteer.launch({
|
||
|
headless: false,
|
||
|
args: [
|
||
|
`--disable-extensions-except=${pathToExtension}`,
|
||
|
`--load-extension=${pathToExtension}`
|
||
|
]
|
||
|
})
|
||
|
})()
|