mirror of
https://github.com/gosticks/PiPer.git
synced 2026-07-01 22:00:00 +00:00
Added Streamable support
This commit is contained in:
@@ -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.
@@ -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>
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user