Updated readme

Added DAZN support
This commit is contained in:
amarcu5
2019-11-13 20:01:44 +00:00
parent 6a12966ad3
commit caaeeb01d9
6 changed files with 22 additions and 21 deletions

View File

@@ -56,6 +56,7 @@ Install from the [Chrome Web Store](https://chrome.google.com/webstore/detail/pi
* [CollegeHumor](http://www.collegehumor.com)
* [Crunchyroll](http://www.crunchyroll.com)
* [CuriosityStream](http://www.curiositystream.com)
* [DAZN](https://www.dazn.com)
* [Disney+](http://www.disneyplus.com)
* [Eurosport player](http://www.eurosportplayer.com)
* [FuboTV](http://www.fubo.tv)

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -2,29 +2,29 @@ export const domain = 'dazn';
export const resource = {
buttonStyle: (`
width: 1.5rem;
height: 1.5rem;
color: white;
background: transparent;
position: relative;
border: none;
outline: none;
border-radius: 0;
cursor: pointer;
-webkit-appearance: none;
margin: 0.5rem;
z-index: 1;
width: 1.5rem;
height: 1.5rem;
color: white;
background: transparent;
position: relative;
border: none;
outline: none;
border-radius: 0;
cursor: pointer;
-webkit-appearance: none;
margin: 0.5rem;
z-index: 1;
`),
buttonInsertBefore: function(parent) {
// The Live indicator might move/cover the PiP button, just place the PiP button before it
var liveIndicator = document.querySelector('div[data-test-id^="PLAYER_LIVE_INDICATOR"]');
if (liveIndicator) {
return liveIndicator;
}
buttonInsertBefore: function(/** Element */ parent) {
// The Live indicator might move/cover the PiP button, just place the PiP button before it
const liveIndicator = document.querySelector('div[data-test-id^="PLAYER_LIVE_INDICATOR"]');
if (liveIndicator) {
return liveIndicator;
}
return parent.lastChild;
},
buttonParent: function() {
return document.querySelector('div[data-test-id^="PLAYER_BAR"]');
return document.querySelector('div[data-test-id^="PLAYER_BAR"]');
},
videoElement: function() {
return document.querySelector('div[data-test-id^="PLAYER_SOLUTION"] video');

View File

@@ -8,9 +8,9 @@
<key>CFBundleIdentifier</key>
<string>com.amarcus.safari.piper</string>
<key>CFBundleShortVersionString</key>
<string>1.0.4</string>
<string>1.0.3</string>
<key>CFBundleVersion</key>
<string>224</string>
<string>233</string>
<key>Developer Identifier</key>
<string>BQ6Q24MF9X</string>
<key>URL</key>