diff --git a/out/PiPer.safariextz b/out/PiPer.safariextz index 13df2eb..f2425be 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 2ecfd52..8d340ab 100644 --- a/src/scripts/main.js +++ b/src/scripts/main.js @@ -328,14 +328,15 @@ const resources = { 'littlethings': { buttonClassName: 'jw-icon jw-icon-inline jw-button-color jw-reset jw-icon-logo', buttonElementType: 'div', + buttonInsertBefore: function(/** Element */ parent) { + return parent.lastChild; + }, buttonParent: function() { - const e = document.getElementById('player'); - return e && e.querySelector('.jw-controlbar-right-group'); + return document.querySelector('.jw-controlbar-right-group'); }, buttonStyle: 'width:38px', videoElement: function() { - const e = document.getElementById('player'); - return e && e.querySelector('video.jw-video'); + return document.querySelector('video.jw-video'); }, }, diff --git a/update.plist b/update.plist index bacfc0a..537c113 100644 --- a/update.plist +++ b/update.plist @@ -10,7 +10,7 @@ CFBundleShortVersionString 0.2.1 CFBundleVersion - 57 + 58 Developer Identifier BQ6Q24MF9X URL