diff --git a/README.md b/README.md index dbe942e..99a0cb8 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/out/PiPer.safariextz b/out/PiPer.safariextz index 760fb58..0b18c40 100644 Binary files a/out/PiPer.safariextz and b/out/PiPer.safariextz differ diff --git a/src/Info.plist b/src/Info.plist index 6229381..60eb016 100644 --- a/src/Info.plist +++ b/src/Info.plist @@ -64,6 +64,8 @@ *.netflix.com openload.co *.openload.co + plex.tv + *.plex.tv theonion.com *.theonion.com twitch.tv diff --git a/src/scripts/main.js b/src/scripts/main.js index db3082a..644a378 100644 --- a/src/scripts/main.js +++ b/src/scripts/main.js @@ -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', diff --git a/update.plist b/update.plist index c59975e..4581b46 100644 --- a/update.plist +++ b/update.plist @@ -10,7 +10,7 @@ CFBundleShortVersionString 0.1.2 CFBundleVersion - 13 + 14 Developer Identifier BQ6Q24MF9X URL