Added CuriosityStream support

This commit is contained in:
amarcu5
2017-05-09 20:45:49 +01:00
parent e93ce3c78a
commit 3573e28fcb
5 changed files with 25 additions and 1 deletions
+1
View File
@@ -12,6 +12,7 @@ Get the latest release from the [Safari Extension Gallery](https://safari-extens
## Supported sites
* [Amazon video](http://www.amazon.com/PrimeVideo)
* [CollegeHumor](http://www.collegehumor.com)
* [CuriosityStream](http://www.curiositystream.com)
* [Hulu](http://www.hulu.com)
* [LittleThings](http://www.littlethings.com)
* [Mashable](http://www.mashable.com)
Binary file not shown.
+2
View File
@@ -50,6 +50,8 @@
<string>*.amazon.ca</string>
<string>collegehumor.com</string>
<string>*.collegehumor.com</string>
<string>curiositystream.com</string>
<string>*.curiositystream.com</string>
<string>hulu.com</string>
<string>*.hulu.com</string>
<string>littlethings.com</string>
+21
View File
@@ -115,6 +115,27 @@ const resources = {
return document.getElementById('vjs_video_3_html5_api');
},
},
'curiositystream': {
buttonDidAppear: function() {
const style = document.createElement('style');
style.appendChild(document.createTextNode('#' + BUTTON_ID + ':hover{opacity:1!important}'));
document.getElementById(BUTTON_ID).appendChild(style);
},
buttonInsertBefore: function(/** Element */ parent) {
return parent.lastChild;
},
buttonParent: function() {
const e = document.getElementById('app');
return e && e.querySelector('div[class^="styles__controls"]');
},
buttonScale: 1.1,
buttonStyle: 'height:22px;width:22px;cursor:pointer;padding:0;border:0;opacity:0.8;margin-right:30px;background:transparent',
videoElement: function() {
const e = document.getElementById('app');
return e && e.querySelector('video[class^="styles__video"]');
},
},
'hulu': {
buttonClassName: 'simple-button',
+1 -1
View File
@@ -10,7 +10,7 @@
<key>CFBundleShortVersionString</key>
<string>0.1.3</string>
<key>CFBundleVersion</key>
<string>18</string>
<string>21</string>
<key>Developer Identifier</key>
<string>BQ6Q24MF9X</string>
<key>URL</key>