Last active
November 2, 2022 03:34
-
-
Save shirayu/da8d2223faebcfcf530ae780f2b8d187 to your computer and use it in GitHub Desktop.
google meetのPIPを呼ぶ
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
| 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,}); |
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
| 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,}); |
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
| 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, | |
| }); |
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
| 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, | |
| }); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These scripts are licensed under CC0 1.0