LoginSignup
8
5

More than 3 years have passed since last update.

Safari(Mac)で動画をPIPモードで見る

Last updated at Posted at 2019-05-10

動機

ブックマークから簡単にPIPモードに入れるコードの紹介です。
プライムビデオをPIP(Picture in Picture)モードで見たかった。
動作確認しているサイト

  • Youtube
  • ニコニコ動画
  • Amazonプライムビデオ

使い方

1.適当なブックマークを作成してください
2.ブックマークバー->アドレスを編集->以下をペースト

javascript:function%20startPiP(){var%20videos=document.getElementsByTagName('video');for(vid%20in%20videos){if(videos[vid].src){videos[vid].webkitSetPresentationMode("picture-in-picture");}}};startPiP();

3.動画再生後、作成したブックマークをクリック

参考

8
5
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
5