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