Skip to content

Instantly share code, notes, and snippets.

@shirayu
Last active November 2, 2022 03:34
Show Gist options
  • Select an option

  • Save shirayu/da8d2223faebcfcf530ae780f2b8d187 to your computer and use it in GitHub Desktop.

Select an option

Save shirayu/da8d2223faebcfcf530ae780f2b8d187 to your computer and use it in GitHub Desktop.
google meetのPIPを呼ぶ
javascript:document.querySelector('button[aria-label="More options"]').click();new MutationObserver((m,o) => { const p = Array.from(document.querySelectorAll("span")).find( (el) => el.textContent === "Open picture-in-picture mode" ); if (p) { p.click(); o.disconnect(); }}).observe(document.getElementsByTagName("body")[0], { childList: true, subtree: true,});
javascript:document.querySelector('button[aria-label="その他のオプション"]').click();new MutationObserver((m,o) => { const p = Array.from(document.querySelectorAll("span")).find( (el) => el.textContent === "ピクチャー イン ピクチャーを開く" ); if (p) { p.click(); o.disconnect(); }}).observe(document.getElementsByTagName("body")[0], { childList: true, subtree: true,});
document.querySelector('button[aria-label="More options"]').click();
new MutationObserver((m,o) => {
const p = Array.from(document.querySelectorAll("span")).find(
(el) => el.textContent === "Open picture-in-picture mode"
);
if (p) {
p.click();
o.disconnect();
}
}).observe(document.getElementsByTagName("body")[0], {
childList: true,
subtree: true,
});
document.querySelector('button[aria-label="その他のオプション"]').click();
new MutationObserver((m,o) => {
const p = Array.from(document.querySelectorAll("span")).find(
(el) => el.textContent === "ピクチャー イン ピクチャーを開く"
);
if (p) {
p.click();
o.disconnect();
}
}).observe(document.getElementsByTagName("body")[0], {
childList: true,
subtree: true,
});
@shirayu
Copy link
Author

shirayu commented Oct 29, 2022

These scripts are licensed under CC0 1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment