Google Meetへの参加時にカメラ/マイクを自動でオフにします
Google Meet 自動カメラ/マイク オフ Extension
Google Meetへの参加時にカメラ/マイクを自動でオフにします。
シンプルに以下のコードを実行しています。
---
(function () {
var timer = setInterval(mute, 100);
setTimeout(function () { clearInterval(timer) }, 20000);
function mute() {
var muteTags = document.querySelectorAll('[data-is-muted=false]');
for (var muteTag of muteTags) {
muteTag.click();
}
var muteTags2 = document.querySelectorAll('[data-is-muted=true]');
console.log(muteTags, muteTags2);
if (muteTags.length === 0 || muteTags2.length === 0) { return; }
clearInterval(timer);
}
})();
---
Read more
シンプルに以下のコードを実行しています。
---
(function () {
var timer = setInterval(mute, 100);
setTimeout(function () { clearInterval(timer) }, 20000);
function mute() {
var muteTags = document.querySelectorAll('[data-is-muted=false]');
for (var muteTag of muteTags) {
muteTag.click();
}
var muteTags2 = document.querySelectorAll('[data-is-muted=true]');
console.log(muteTags, muteTags2);
if (muteTags.length === 0 || muteTags2.length === 0) { return; }
clearInterval(timer);
}
})();
---
Source Manifest.json
{ "content_scripts": [ { "js": [ "script.js" ], "matches": [ "https://meet.google.com/*" ] } ], "description": "Google Meet\u3078\u306e\u53c2\u52a0\u6642\u306b\u30ab\u30e1\u30e9/\u30de\u30a4\u30af\u3092\u81ea\u52d5\u3067\u30aa\u30d5\u306b\u3057\u307e\u3059", "icons": { "128": "icon128.png", "16": "icon16.png", "48": "icon48.png" }, "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvIpu8ryoDOZfYlgx40RDafQfTE8w+IdMf2vGnv44CA9pP0NKMRttTkjqMbAI3XnEgfuvaD3WW4s0TVugb964dC2KrebGElJTxfTDqsjWLPUhTgWNgYxRLJoK/Khztglj11A/tV7pDem6eQYFVBGTkt2X6fi4QzrX732pl9DJoDckeSJxVuXMNtr6WZ0iZWcTGANnxu0RQOVSO3eFtFjNyfUdYsHi2HfmvUxcBEnN+i4xqeEDOnUfg84I/xOWaRJ7m+A/U6oii6s55VaRpusu+SzLwG17tsbDKyixvLoIHk00F5FNmlRBd4vsqO1fkT0ECxWd2MVN6PfFwuh820IIAwIDAQAB", "manifest_version": 3, "name": "Google Meet \u81ea\u52d5\u30ab\u30e1\u30e9/\u30de\u30a4\u30af \u30aa\u30d5", "permissions": [ ], "update_url": "https://clients2.google.com/service/update2/crx", "version": "1.2"}
Read more