diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1043661f..f718dfa3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,8 +72,8 @@ jobs: run: sudo apt-get install rename - name: Install signed file run: cd ./web-ext-artifacts - run: rename 's/.*/FirefoxSignedInstaller.xpi/' * - run: cd .. + - run: rename 's/.*/FirefoxSignedInstaller.xpi/' * + - run: cd .. - uses: actions/upload-artifact@v1 with: name: FirefoxExtensionSigned.xpi diff --git a/manifest/manifest.json b/manifest/manifest.json index 7a41a671..a7b4369f 100644 --- a/manifest/manifest.json +++ b/manifest/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_fullName__", "short_name": "__MSG_Name__", - "version": "1.2.28", + "version": "1.2.28.1", "default_locale": "en", "description": "__MSG_Description__", "content_scripts": [{ diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx index e8530dde..d6114788 100644 --- a/src/components/SponsorTimeEditComponent.tsx +++ b/src/components/SponsorTimeEditComponent.tsx @@ -59,7 +59,7 @@ class SponsorTimeEditComponent extends React.Component 0 || autoPlayDisplay.style.display !== "none") { + // Used to check if replay button + let playButtonSVGData = document.querySelector("ytp-play-button")?.querySelector("ytp-svg-fill")?.getAttribute("d"); + let replaceSVGData = "M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"; + + if (playButtonSVGData === replaceSVGData) { // At the end of the video return video.duration; }