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 puppeteer from "puppeteer";
 | 
				
			||||||
 | 
					import { readFileSync } from "fs";
 | 
				
			||||||
import pino from "pino";
 | 
					import pino from "pino";
 | 
				
			||||||
const logger = pino({
 | 
					const logger = pino({
 | 
				
			||||||
  level: "debug",
 | 
					  level: "debug",
 | 
				
			||||||
| 
						 | 
					@ -27,6 +28,11 @@ await page.evaluate(() => {
 | 
				
			||||||
  document.querySelector("body")!.requestFullscreen();
 | 
					  document.querySelector("body")!.requestFullscreen();
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					logger.debug("Injecting CSS");
 | 
				
			||||||
 | 
					await page.addStyleTag({
 | 
				
			||||||
 | 
					  content: readFileSync("jitsi-hide.css", "utf-8"),
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
browser.on("disconnected", () => {
 | 
					browser.on("disconnected", () => {
 | 
				
			||||||
  logger.info("Browser disconnected, exiting");
 | 
					  logger.info("Browser disconnected, exiting");
 | 
				
			||||||
  process.exit(0);
 | 
					  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…
	
	Add table
		
		Reference in a new issue