Added Streamable support

This commit is contained in:
amarcu5
2017-09-18 15:41:18 +01:00
parent 78baa928b8
commit 6557f96e4f
5 changed files with 30 additions and 1 deletions

View File

@@ -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)

Binary file not shown.

View File

@@ -76,6 +76,8 @@
<string>*.plex.tv</string>
<string>primevideo.com</string>
<string>*.primevideo.com</string>
<string>streamable.com</string>
<string>*.streamable.com</string>
<string>theonion.com</string>
<string>*.theonion.com</string>
<string>twitch.tv</string>

View File

@@ -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',

View File

@@ -10,7 +10,7 @@
<key>CFBundleShortVersionString</key>
<string>0.2.3</string>
<key>CFBundleVersion</key>
<string>93</string>
<string>94</string>
<key>Developer Identifier</key>
<string>BQ6Q24MF9X</string>
<key>URL</key>