diff --git a/README.md b/README.md index c785052..06d46aa 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ Install from the [Chrome Web Store](https://chrome.google.com/webstore/detail/pi * [Netflix](http://www.netflix.com) * [OCS](http://www.ocs.fr) * [Openload](http://www.openload.co) +* [PBS](http://www.pbs.org) * [Periscope](http://www.periscope.tv) * [Plex](http://www.plex.tv) * [Seznam Zprávy](http://www.seznam.cz/zpravy) diff --git a/out/PiPer-chrome.zip b/out/PiPer-chrome.zip index e9a142e..46e9013 100644 Binary files a/out/PiPer-chrome.zip and b/out/PiPer-chrome.zip differ diff --git a/out/PiPer-safari-legacy.safariextz b/out/PiPer-safari-legacy.safariextz index 25f89ba..0335bdb 100644 Binary files a/out/PiPer-safari-legacy.safariextz and b/out/PiPer-safari-legacy.safariextz differ diff --git a/out/PiPer-safari.pkg b/out/PiPer-safari.pkg index 29eb909..3d7d252 100644 Binary files a/out/PiPer-safari.pkg and b/out/PiPer-safari.pkg differ diff --git a/src/common/scripts/resources/pbs.js b/src/common/scripts/resources/pbs.js new file mode 100644 index 0000000..49b0321 --- /dev/null +++ b/src/common/scripts/resources/pbs.js @@ -0,0 +1,28 @@ +import { getResource } from './../common.js' +import { videoPlayingPictureInPicture, togglePictureInPicture } from './../video.js' + +export const domain = 'pbs'; + +export const resource = { + buttonClassName: 'jw-icon jw-icon-inline jw-button-color jw-reset', + buttonDidAppear: function() { + const fullscreenButton = document.querySelector('.jw-icon-fullscreen'); + fullscreenButton.addEventListener('click', function() { + const video = /** @type {?HTMLVideoElement} */ (getResource().videoElement()); + if (videoPlayingPictureInPicture(video)) togglePictureInPicture(video); + }); + }, + buttonElementType: 'div', + buttonHoverStyle: /** CSS */ (`opacity: 1 !important`), + buttonInsertBefore: function(/** Element */ parent) { + return parent.lastChild; + }, + buttonParent: function() { + return document.querySelector('.jw-button-container'); + }, + buttonScale: 0.6, + buttonStyle: /** CSS */ (`opacity: 0.8`), + videoElement: function() { + return document.querySelector('.jw-video'); + }, +}; \ No newline at end of file diff --git a/src/safari-legacy/update.plist b/src/safari-legacy/update.plist index 1e29c23..fd4ecbf 100644 --- a/src/safari-legacy/update.plist +++ b/src/safari-legacy/update.plist @@ -10,7 +10,7 @@ CFBundleShortVersionString CFBundleVersion - 188 + 189 Developer Identifier BQ6Q24MF9X URL