Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
Added DAZN support
  • Loading branch information
amarcu5 committed Nov 13, 2019
1 parent 6a12966 commit caaeeb0
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 21 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Binary file modified out/PiPer-chrome.zip
Binary file not shown.
Binary file modified out/PiPer-safari-legacy.safariextz
Binary file not shown.
Binary file modified out/PiPer-safari.pkg
Binary file not shown.
38 changes: 19 additions & 19 deletions src/common/scripts/resources/dazn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions src/safari-legacy/update.plist
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit caaeeb0

Please sign in to comment.