Skip to content

Instantly share code, notes, and snippets.

@tkdn
Last active March 4, 2022 07:47
Show Gist options
  • Save tkdn/e6ed758df441b106eddc9ba8a10aa531 to your computer and use it in GitHub Desktop.
Save tkdn/e6ed758df441b106eddc9ba8a10aa531 to your computer and use it in GitHub Desktop.
Meet で PiP したい
// ==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 <tkdnation@gmail.com>
// @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();
}
});
})();
@tkdn
Copy link
Author

tkdn commented Mar 4, 2022

使い方

コメント以外でキーボード p を押下する

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