Skip to content

Commit

Permalink
stream.py: fix querySelector for BBB 2.3 and 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
oxzi committed May 11, 2022
1 parent 9ed4944 commit d4feb46
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@ def bbb_browser():
logging.info("could not find users and messages toggle")

# Remove everything from the top bar, except the meeting's title.
browser.execute_script("document.querySelector('div[class^=\"navbar\"] > div[class^=\"top\"] > div[class^=\"left\"]').style.display='none';")
browser.execute_script("document.querySelectorAll('div[class^=\"navbar\"] > div[class^=\"top\"] > div[class^=\"center\"] > :not(h1)').forEach((ele) => ele.style.display='none');")
browser.execute_script("document.querySelector('div[class^=\"navbar\"] > div[class^=\"top\"] > div[class^=\"right\"]').style.display='none';")
browser.execute_script("document.querySelector('[class^=\"navbar\"] > div[class^=\"top\"] > div[class^=\"left\"]').style.display='none';")
browser.execute_script("document.querySelectorAll('[class^=\"navbar\"] > div[class^=\"top\"] > div[class^=\"center\"] > :not(h1)').forEach((ele) => ele.style.display='none');")
browser.execute_script("document.querySelector('[class^=\"navbar\"] > div[class^=\"top\"] > div[class^=\"right\"]').style.display='none';")

if args.bbb_hide_meeting_title:
browser.execute_script("document.querySelector('div[class^=\"navbar\"] > div[class^=\"top\"]').style.display='none';")
browser.execute_script("document.querySelector('[class^=\"navbar\"] > div[class^=\"top\"]').style.display='none';")
if args.bbb_hide_who_talks:
browser.execute_script("document.querySelector('div[class^=\"navbar\"] > div[class^=\"bottom\"]').style.display='none';")
browser.execute_script("document.querySelector('[class^=\"navbar\"] > div[class^=\"bottom\"]').style.display='none';")
if args.bbb_hide_meeting_title and args.bbb_hide_who_talks:
browser.execute_script("document.querySelector('[class^=\"navbar\"]').style.height='0px';")

Expand All @@ -246,7 +246,7 @@ def bbb_browser():
/* Fullscreen button, both for presentations and webcams */
button[aria-label^="Make "][aria-label$=" fullscreen"],
/* Drop down menu next to user names for webcam videos */
div[class^="videoCanvas"] span[class^="dropdownTrigger"]::after,
div[class^="videoCanvas"] [class^="dropdownTrigger"]::after,
/* Interactive poll window */
div[class^="pollingContainer"],
/* Notification toasts */
Expand Down

0 comments on commit d4feb46

Please sign in to comment.