- Visit this page on on iPhone or iPod Touch
- Add this page to bookmarks
- Open your bookmarks
- Edit the bookmark you just saved
- Change the URL to:
javascript:void%20function(){var%20e=document.createElement(%22script%22);e.onload=function(){[].forEach.call(document.querySelectorAll(%22video%22),makeVideoPlayableInline)},e.src=%22https://rawgit.com/bfred-it/ffd71c642d2fcf4649b230bd71bc9a93/raw/fb39a59c458aeb49d882d81c9d4be2b3ae0b3b93/enabler.js%22,document.head.appendChild(e)}();
- Save
- Open it on any page, like http://jplayer.org/latest/demo-01-video/, and then touch the video directly (play buttons might still go fullscreen)
Note: this doesn't work on videos embedded via <iframe>
This bookmarklet is based on bfred-it/iphone-inline-video
, a module that can be implemented on any website by web developers.