From e8a106d36bc95e5baf794b78095d0f87c69484ee Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 19 Aug 2021 13:23:28 -0400 Subject: [PATCH 1/2] Fix warnings --- src/components/CategorySkipOptionsComponent.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/CategorySkipOptionsComponent.tsx b/src/components/CategorySkipOptionsComponent.tsx index fe0f180f..be174ddd 100644 --- a/src/components/CategorySkipOptionsComponent.tsx +++ b/src/components/CategorySkipOptionsComponent.tsx @@ -3,9 +3,7 @@ import * as React from "react"; import Config from "../config" import { Category, CategorySkipOption } from "../types"; -import Utils from "../utils"; import { getCategoryActionType } from "../utils/categoryUtils"; -const utils = new Utils(); export interface CategorySkipOptionsProps { category: Category; From 36aec560ca06774322d6b1b7219dac28da3cfc11 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 19 Aug 2021 22:32:28 -0400 Subject: [PATCH 2/2] Add options for smaller and faded notice --- public/_locales/en/messages.json | 21 ++++++++-- public/options/options.css | 2 +- public/options/options.html | 16 +++++++- .../CategorySkipOptionsComponent.tsx | 2 +- src/components/SkipNoticeComponent.tsx | 5 ++- src/config.ts | 4 +- src/options.ts | 38 ++++++++++++------- src/render/SkipNotice.tsx | 6 ++- src/types.ts | 8 ++++ 9 files changed, 77 insertions(+), 25 deletions(-) diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 1609ab07..0ba715fe 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -224,6 +224,24 @@ "showNotice": { "message": "Show Notice Again" }, + "showSkipNotice": { + "message": "Show Notice After A Segment Is Skipped" + }, + "noticeVisibilityMode0": { + "message": "Full Size Skip Notices" + }, + "noticeVisibilityMode1": { + "message": "Small Skip Notices for Auto Skip" + }, + "noticeVisibilityMode2": { + "message": "All Small Skip Notices" + }, + "noticeVisibilityMode3": { + "message": "Faded Skip Notices for Auto Skip" + }, + "noticeVisibilityMode4": { + "message": "All Faded Skip Notices" + }, "longDescription": { "message": "SponsorBlock lets you skip over sponsors, intros, outros, subscription reminders, and other annoying parts of YouTube videos. SponsorBlock is a crowdsourced browser extension that let's anyone submit the start and end time's of sponsored segments and other segments of YouTube videos. Once one person submits this information, everyone else with this extension will skip right over the sponsored segment. You can also skip over non music sections of music videos.", "description": "Full description of the extension on the store pages." @@ -356,9 +374,6 @@ "createdBy": { "message": "Created By" }, - "showSkipNotice": { - "message": "Show Notice After A Segment Is Skipped" - }, "keybindCurrentlySet": { "message": ". It is currently set to:" }, diff --git a/public/options/options.css b/public/options/options.css index 2990f193..e6dd3a01 100644 --- a/public/options/options.css +++ b/public/options/options.css @@ -349,7 +349,7 @@ svg { padding-bottom: 15px; } -.categoryOptionsSelector { +.optionsSelector { background-color: #c00000; color: white; diff --git a/public/options/options.html b/public/options/options.html index 52bce8e2..90a2e51f 100644 --- a/public/options/options.html +++ b/public/options/options.html @@ -210,9 +210,21 @@ + +
+
+
+ +
+ +
-
-


diff --git a/src/components/CategorySkipOptionsComponent.tsx b/src/components/CategorySkipOptionsComponent.tsx index be174ddd..1095f5fe 100644 --- a/src/components/CategorySkipOptionsComponent.tsx +++ b/src/components/CategorySkipOptionsComponent.tsx @@ -61,7 +61,7 @@ class CategorySkipOptionsComponent extends React.Component