diff --git a/out/PiPer.safariextz b/out/PiPer.safariextz index f9bbb78..a6f4d78 100644 Binary files a/out/PiPer.safariextz and b/out/PiPer.safariextz differ diff --git a/src/scripts/main.js b/src/scripts/main.js index 0428fbe..4aa8ee3 100644 --- a/src/scripts/main.js +++ b/src/scripts/main.js @@ -286,21 +286,19 @@ const resources = { }, 'curiositystream': { + buttonClassName: 'vjs-control vjs-button', buttonHoverStyle: 'opacity:1!important', buttonInsertBefore: function(/** Element */ parent) { return parent.lastChild; }, buttonParent: function() { - return document.querySelector('div[class^="styles__controls"]'); - }, - buttonScale: 1.1, - buttonStyle: 'height:22px;width:22px;cursor:pointer;padding:0;border:0;opacity:0.8;margin-right:30px;background:transparent', - captionElement: function() { - const e = currentResource.videoElement(); - return /** @type {?Element} */ (e && e.parentNode.querySelector('div[style*="width:"]:not([class])')); + const e = document.getElementById('main-player'); + return e && e.querySelector('.vjs-control-bar'); }, + buttonScale: 0.7, + buttonStyle: 'opacity:0.8;cursor:pointer', videoElement: function() { - return document.querySelector('video[class^="styles__video"]'); + return document.getElementById('main-player_html5_api'); }, }, diff --git a/update.plist b/update.plist index 4bb042d..eb1b3eb 100644 --- a/update.plist +++ b/update.plist @@ -8,9 +8,9 @@ CFBundleIdentifier com.amarcus.safari.piper CFBundleShortVersionString - 0.2.0 + 0.2.1 CFBundleVersion - 50 + 51 Developer Identifier BQ6Q24MF9X URL