diff --git a/README.md b/README.md index 6700723..49f47ab 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Get the latest release from the [Safari Extension Gallery](https://safari-extens * [OCS](http://www.ocs.fr) * [Openload](http://www.openload.co) * [Plex](http://www.plex.tv) +* [Streamable](http://streamable.com) * [The Onion](http://www.theonion.com) * [Twitch](http://www.twitch.tv) * [Udemy](http://www.udemy.com) diff --git a/out/PiPer.safariextz b/out/PiPer.safariextz index eb43742..48c8194 100644 Binary files a/out/PiPer.safariextz and b/out/PiPer.safariextz differ diff --git a/src/Info.plist b/src/Info.plist index 70dcd19..f702bbc 100644 --- a/src/Info.plist +++ b/src/Info.plist @@ -76,6 +76,8 @@ *.plex.tv primevideo.com *.primevideo.com + streamable.com + *.streamable.com theonion.com *.theonion.com twitch.tv diff --git a/src/scripts/main.js b/src/scripts/main.js index cdf737f..66b2fd0 100644 --- a/src/scripts/main.js +++ b/src/scripts/main.js @@ -587,6 +587,32 @@ const resources = { }, }, + 'streamable': { + buttonDidAppear: function() { + const progressBar = document.getElementById('player-progress'); + const progressBarStyle = window.getComputedStyle(progressBar); + button.style.right = progressBarStyle.right; + progressBar.style.right = (parseInt(progressBarStyle.right, 10) + 40) + 'px'; + }, + buttonElementType: 'div', + buttonHoverStyle: /** CSS */ (`opacity: 1 !important`), + buttonParent: function() { + return document.querySelector('.player-controls-right'); + }, + buttonStyle: /** CSS */ (` + position: absolute; + bottom: 10px; + height: 26px; + width: 26px; + cursor: pointer; + opacity: 0.9; + filter: drop-shadow(rgba(0, 0, 0, 0.5) 0px 0px 2px); + `), + videoElement: function() { + return document.getElementById('video-player-tag'); + }, + }, + 'theonion': { buttonClassName: 'jw-icon jw-icon-inline jw-button-color jw-reset jw-icon-logo', buttonElementType: 'div', diff --git a/update.plist b/update.plist index af5058a..ffd78e8 100644 --- a/update.plist +++ b/update.plist @@ -10,7 +10,7 @@ CFBundleShortVersionString 0.2.3 CFBundleVersion - 93 + 94 Developer Identifier BQ6Q24MF9X URL