add ui hiding
This commit is contained in:
parent
dad41d4920
commit
0bce5ec4d1
2 changed files with 18 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
import puppeteer from "puppeteer";
|
||||
import { readFileSync } from "fs";
|
||||
import pino from "pino";
|
||||
const logger = pino({
|
||||
level: "debug",
|
||||
|
@ -27,6 +28,11 @@ await page.evaluate(() => {
|
|||
document.querySelector("body")!.requestFullscreen();
|
||||
});
|
||||
|
||||
logger.debug("Injecting CSS");
|
||||
await page.addStyleTag({
|
||||
content: readFileSync("jitsi-hide.css", "utf-8"),
|
||||
});
|
||||
|
||||
browser.on("disconnected", () => {
|
||||
logger.info("Browser disconnected, exiting");
|
||||
process.exit(0);
|
||||
|
|
12
jitsi-hide.css
Normal file
12
jitsi-hide.css
Normal file
|
@ -0,0 +1,12 @@
|
|||
.new-toolbox,
|
||||
.filmstrip,
|
||||
.with-filmstrip,
|
||||
.subject,
|
||||
.atlaskit-portal-container,
|
||||
.atlaskit-portal {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.watermark {
|
||||
display: none !important;
|
||||
}
|
Loading…
Reference in a new issue