diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2437a778..1043661f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: - run: mkdir ./builds - uses: montudor/action-zip@v0.1.0 with: - args: zip -qq -r ./builds/ChromeExtension.zip ./dist + args: zip -qq -r ./builds/ChromeExtension.zip ./dist/* # Create Firefox artifacts - name: Create Firefox artifacts @@ -39,7 +39,7 @@ jobs: path: dist - uses: montudor/action-zip@v0.1.0 with: - args: zip -qq -r ./builds/FirefoxExtension.zip ./dist + args: zip -qq -r ./builds/FirefoxExtension.zip ./dist/* # Create Beta artifacts (Builds with the name changed to beta) - name: Create Chrome Beta artifacts @@ -50,7 +50,7 @@ jobs: path: dist - uses: montudor/action-zip@v0.1.0 with: - args: zip -qq -r ./builds/ChromeExtensionBeta.zip ./dist + args: zip -qq -r ./builds/ChromeExtensionBeta.zip ./dist/* - name: Create Firefox Beta artifacts run: npm run build:firefox -- --env.stream=beta @@ -60,7 +60,24 @@ jobs: path: dist - uses: montudor/action-zip@v0.1.0 with: - args: zip -qq -r ./builds/FirefoxExtensionBeta.zip ./dist + args: zip -qq -r ./builds/FirefoxExtensionBeta.zip ./dist/* + + # Create Firefox Signed Beta version + - name: Create Firefox Signed Beta artifacts + run: npm run web-sign + env: + WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }} + WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }} + - name: Install rename + run: sudo apt-get install rename + - name: Install signed file + run: cd ./web-ext-artifacts + run: rename 's/.*/FirefoxSignedInstaller.xpi/' * + run: cd .. + - uses: actions/upload-artifact@v1 + with: + name: FirefoxExtensionSigned.xpi + path: ./web-ext-artifacts/FirefoxSignedInstaller.xpi # Upload each release asset - name: Upload to release @@ -70,6 +87,13 @@ jobs: name: ChromeExtension.zip path: ./builds/ChromeExtension.zip repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Upload to release + uses: Shopify/upload-to-release@master + with: + args: builds/ChromeExtensionBeta.zip + name: ChromeExtensionBeta.zip + path: ./builds/ChromeExtensionBeta.zip + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Upload to release uses: Shopify/upload-to-release@master with: @@ -77,4 +101,11 @@ jobs: name: FirefoxExtension.zip path: ./builds/FirefoxExtension.zip repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Upload to release + uses: Shopify/upload-to-release@master + with: + args: web-ext-artifacts/FirefoxSignedInstaller.xpi + name: FirefoxSignedInstaller.xpi + path: ./web-ext-artifacts/FirefoxSignedInstaller.xpi + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/config.json.example b/config.json.example index 0919d30e..aad02a3c 100644 --- a/config.json.example +++ b/config.json.example @@ -2,5 +2,5 @@ "serverAddress": "https://sponsor.ajay.app", "testingServerAddress": "https://sponsor.ajay.app/test", "serverAddressComment": "This specifies the default SponsorBlock server to conect to", - "categoryList": ["sponsor", "intro", "outro", "interaction", "selfpromo", "offtopic"] + "categoryList": ["sponsor", "intro", "outro", "interaction", "selfpromo", "music_offtopic"] } diff --git a/manifest/manifest.json b/manifest/manifest.json index 5b302f1f..7a41a671 100644 --- a/manifest/manifest.json +++ b/manifest/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_fullName__", "short_name": "__MSG_Name__", - "version": "1.2.27", + "version": "1.2.28", "default_locale": "en", "description": "__MSG_Description__", "content_scripts": [{ diff --git a/package.json b/package.json index c778277c..bccb8af8 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ }, "scripts": { "web-run": "npm run web-run:chrome", + "web-sign": "web-ext sign -s dist", "web-run:firefox": "cd dist && web-ext run --start-url https://addons.mozilla.org/firefox/addon/ublock-origin/", "web-run:chrome": "cd dist && web-ext run --start-url https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm -t chromium", "build": "npm run build:chrome", diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 086ce0d5..864b957b 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -351,7 +351,7 @@ "message": "Support Invidious" }, "supportInvidiousDescription": { - "message": "Invidious (invidio.us) is a third party YouTube client. To enable support, you must accept the extra permissions. This does NOT work in incongnito on Chrome and other Chromium variants." + "message": "Invidious (invidio.us) is a third party YouTube client. To enable support, you must accept the extra permissions. This does NOT work in incognito on Chrome and other Chromium variants." }, "optionsInfo": { "message": "Enable Invidious support, disable autoskip, hide buttons and more." @@ -490,19 +490,22 @@ "message": "Sponsor" }, "category_intro": { - "message": "Intro" + "message": "Intro Animation" }, "category_outro": { - "message": "Outro" + "message": "Endcards/Credits" }, "category_interaction": { - "message": "Interaction (Redundant Like, Subscribe, Follow, etc.)" + "message": "Interaction Reminder (Subscribe)" }, "category_selfpromo": { "message": "Self-Promotion and Merchandise" }, - "category_offtopic": { - "message": "Offtopic tangent (Subjective)" + "category_music_offtopic": { + "message": "Music: Non-Music Section" + }, + "category_livestream_messages": { + "message": "Livestream: Donation/Message Readings" }, "disable": { "message": "Disable" @@ -554,5 +557,14 @@ }, "forceChannelCheckPopup": { "message": "Consider Enabling Force Channel Check Before Skipping Sponsors" + }, + "downvoteDescription": { + "message": "Incorrect" + }, + "incorrectCategory": { + "message": "Wrong Category" + }, + "nonMusicCategoryOnMusic": { + "message": "This video is categorized as music. Are you sure you would like to submit segments with non-music categories? Unless this video is not actually music, you should not be submitting this segment. Please read the guidelines if you are confused." } } diff --git a/public/content.css b/public/content.css index 51213bd2..66838a9f 100644 --- a/public/content.css +++ b/public/content.css @@ -11,11 +11,28 @@ z-index: 40; } +.sbHidden { + display: none !important; +} + + .previewbar { display: inline-block; height: 100%; } +/* Preview Bar page hacks */ + +.sbTooltipTwoTitleThumbnailOffset { + bottom: -5px !important; +} + +.sbTooltipOneTitleThumbnailOffset { + bottom: 10px !important; +} + +/* */ + .popup { z-index: 10; width: 100%; diff --git a/public/popup.html b/public/popup.html index 3fdb3a73..bede3db5 100644 --- a/public/popup.html +++ b/public/popup.html @@ -135,7 +135,7 @@ 0 - __MSG_Segments__ (since February). + __MSG_Segments__