add ui hiding

This commit is contained in:
Tomáš Mládek 2024-09-17 21:08:41 +02:00
parent dad41d4920
commit 0bce5ec4d1
2 changed files with 18 additions and 0 deletions

View file

@ -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
View file

@ -0,0 +1,12 @@
.new-toolbox,
.filmstrip,
.with-filmstrip,
.subject,
.atlaskit-portal-container,
.atlaskit-portal {
display: none !important;
}
.watermark {
display: none !important;
}