mirror of
https://github.com/gosticks/PiPer.git
synced 2026-10-06 07:26:55 +00:00
Added CuriosityStream support
This commit is contained in:
@@ -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.
@@ -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>
|
||||
|
||||
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user