mirror of
https://github.com/gosticks/PiPer.git
synced 2026-07-04 23:20:02 +00:00
Improved Amazon video and Twitch support
Moved PiP mode button left of the Full screen button
This commit is contained in:
Binary file not shown.
@@ -80,14 +80,19 @@ const buttonObserver = function() {
|
||||
const resources = {
|
||||
|
||||
'amazon': {
|
||||
buttonDidAppear: function() {
|
||||
const style = document.createElement('style');
|
||||
style.appendChild(document.createTextNode('#' + BUTTON_ID + ':hover{opacity:1!important}'));
|
||||
document.getElementById(BUTTON_ID).appendChild(style);
|
||||
},
|
||||
buttonInsertBefore: function(/** Element */ parent) {
|
||||
return parent.lastChild;
|
||||
return parent.querySelector('.fullscreenButtonWrapper');
|
||||
},
|
||||
buttonParent: function() {
|
||||
const e = document.getElementById('dv-web-player');
|
||||
return e && e.querySelector('.hideableTopButtons');
|
||||
},
|
||||
buttonStyle: 'border:0;padding:0;margin:0;background-color:transparent;opacity:0.8;position:relative;left:-8px;width:2vw;height:2vw;min-width:20px;min-height:20px',
|
||||
buttonStyle: 'border:0;padding:0;margin:0;background-color:transparent;opacity:0.8;position:relative;left:8px;width:3vw;height:2vw;min-width:35px;min-height:24px',
|
||||
videoElement: function() {
|
||||
const e = document.querySelector('.rendererContainer');
|
||||
return e && e.querySelector('video[width="100%"]');
|
||||
@@ -246,6 +251,9 @@ const resources = {
|
||||
|
||||
'twitch': {
|
||||
buttonClassName: 'player-button',
|
||||
buttonInsertBefore: function(/** Element */ parent) {
|
||||
return parent.querySelector('.player-button--fullscreen');
|
||||
},
|
||||
buttonParent: function() {
|
||||
const e = document.getElementById('video-playback') || document.getElementById('player');
|
||||
return e && e.querySelector('.player-buttons-right');
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.amarcus.safari.piper</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.1.2</string>
|
||||
<string>0.1.3</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>15</string>
|
||||
<string>16</string>
|
||||
<key>Developer Identifier</key>
|
||||
<string>BQ6Q24MF9X</string>
|
||||
<key>URL</key>
|
||||
|
||||
Reference in New Issue
Block a user