Last active
March 4, 2022 07:47
-
-
Save tkdn/e6ed758df441b106eddc9ba8a10aa531 to your computer and use it in GitHub Desktop.
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
// ==UserScript== | |
// @name 出、出~出会画像内画像奴〜 | |
// @namespace https://gist.github.com/tkdn/e6ed758df441b106eddc9ba8a10aa531#file-meet-picture-in-picture-user-js | |
// @updateURL https://gist.github.com/tkdn/e6ed758df441b106eddc9ba8a10aa531/raw/b6e921d5665a1165e4a02478272b7a0424b50791/meet-picture-in-picture.user.js | |
// @downloadURL https://gist.github.com/tkdn/e6ed758df441b106eddc9ba8a10aa531/raw/b6e921d5665a1165e4a02478272b7a0424b50791/meet-picture-in-picture.user.js | |
// @version 0.2 | |
// @description Meet の画面共有を PiP する | |
// @author tkdn <[email protected]> | |
// @match https://meet.google.com/* | |
// @grant none | |
// ==/UserScript== | |
(() => { | |
console.log('出、出~出会画像内画像奴〜'); | |
document.addEventListener('keyup', e => { | |
if (document.activeElement.tagName === "TEXTAREA") return; | |
if (e.key === "p") { | |
document.querySelector("video")?.requestPictureInPicture(); | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使い方
コメント以外でキーボード p を押下する