Added Plex support

This commit is contained in:
amarcu5
2017-04-10 20:36:20 +01:00
parent 32a177f9dd
commit 9ff8dbd130
5 changed files with 21 additions and 1 deletions
+1
View File
@@ -17,6 +17,7 @@ Get the extension [here](https://s3.amazonaws.com/piper-extension/PiPer.safariex
* [NCAA](http://www.ncaa.com)
* [Netflix](http://www.netflix.com)
* [Openload](http://www.openload.co)
* [Plex](http://www.plex.tv)
* [The Onion](http://www.theonion.com)
* [Twitch](http://www.twitch.tv)
* [Vevo](http://www.vevo.com)
Binary file not shown.
+2
View File
@@ -64,6 +64,8 @@
<string>*.netflix.com</string>
<string>openload.co</string>
<string>*.openload.co</string>
<string>plex.tv</string>
<string>*.plex.tv</string>
<string>theonion.com</string>
<string>*.theonion.com</string>
<string>twitch.tv</string>
+17
View File
@@ -213,6 +213,23 @@ const resources = {
},
},
'plex': {
buttonClassName: 'btn-link',
buttonDidAppear: function() {
const style = document.createElement('style');
style.appendChild(document.createTextNode('#' + BUTTON_ID + ':hover{opacity:1!important}'));
document.getElementById(BUTTON_ID).appendChild(style);
},
buttonParent: function() {
const e = document.getElementById('plex');
return e && e.querySelector('.player-dropups-container.video-controls-right');
},
buttonStyle: 'transform:scale(0.7);opacity:0.8;position:relative;top:-3px',
videoElement: function() {
return document.getElementById('html-video');
},
},
'theonion': {
buttonClassName: 'jw-icon jw-icon-inline jw-button-color jw-reset jw-icon-logo',
buttonElementType: 'div',
+1 -1
View File
@@ -10,7 +10,7 @@
<key>CFBundleShortVersionString</key>
<string>0.1.2</string>
<key>CFBundleVersion</key>
<string>13</string>
<string>14</string>
<key>Developer Identifier</key>
<string>BQ6Q24MF9X</string>
<key>URL</key>