Last active
March 14, 2025 06:45
-
-
Save tkdn/3e69dd806d31f1140b9fe22bcfda160c to your computer and use it in GitHub Desktop.
Meet で全員映像オフ(自分だけ)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Meet で参加者全員の映像をオフにする | |
* refs. https://support.google.com/meet/answer/7501121#zippy=%2C%E5%88%A9%E7%94%A8%E3%81%A7%E3%81%8D%E3%82%8B%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC:~:text=%E8%A7%A3%E9%99%A4%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%80%82-,%E4%BB%96%E3%81%AE%E5%8F%82%E5%8A%A0%E8%80%85%E3%81%AE%E5%8B%95%E7%94%BB%E3%83%95%E3%82%A3%E3%83%BC%E3%83%89%E3%82%92%E3%82%AA%E3%83%95%E3%81%AB%E3%81%99%E3%82%8B,-%E5%88%A9%E7%94%A8%E3%81%A7%E3%81%8D%E3%82%8B%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC | |
*/ | |
const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); | |
(async()=>{ | |
// 参加者一覧を表示 | |
const $users = document.querySelector('[aria-label="ユーザー"]'); | |
$users.click(); | |
await sleep(1000); | |
// 参加者リストの要素を取得しケバブメニューを表示する | |
const $list = document.querySelectorAll('[aria-label="参加者"] [role=listitem]'); | |
[...$list].forEach(e => { | |
const menu = e.querySelector('[aria-label="その他の操作"]'); | |
menu.click(); | |
}); | |
await sleep(1000); | |
// 表示された参加者リストのメニューから「表示しない」を押下 | |
const $notDisplays = document.querySelectorAll('[aria-label*="を表示しない"]'); | |
[...$notDisplays].forEach(e => { | |
e.click(); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment