From 1409c563e2dab13ea2f57718251a40f8e1bf7850 Mon Sep 17 00:00:00 2001 From: Ajay Date: Tue, 31 May 2022 02:37:29 -0400 Subject: [PATCH] Add guidelines for all categories --- manifest/manifest.json | 6 ++ public/_locales/en/messages.json | 58 ++++++++++++++- public/icons/bolt.svg | 37 ++++++++++ public/icons/campaign.svg | 37 ++++++++++ public/icons/lightbulb.svg | 37 ++++++++++ public/icons/music-note.svg | 37 ++++++++++ public/icons/star.svg | 37 ++++++++++ public/icons/stopwatch.svg | 37 ++++++++++ src/utils/constants.ts | 120 +++++++++++++++++++++++++++++++ 9 files changed, 404 insertions(+), 2 deletions(-) create mode 100644 public/icons/bolt.svg create mode 100644 public/icons/campaign.svg create mode 100644 public/icons/lightbulb.svg create mode 100644 public/icons/music-note.svg create mode 100644 public/icons/star.svg create mode 100644 public/icons/stopwatch.svg diff --git a/manifest/manifest.json b/manifest/manifest.json index fc207352..18a50afd 100644 --- a/manifest/manifest.json +++ b/manifest/manifest.json @@ -54,6 +54,12 @@ "icons/segway.png", "icons/close-smaller.svg", "icons/right-arrow.svg", + "icons/campaign.svg", + "icons/star.svg", + "icons/lightbulb.svg", + "icons/bolt.svg", + "icons/stopwatch.svg", + "icons/music-note.svg", "icons/PlayerInfoIconSponsorBlocker.svg", "icons/PlayerDeleteIconSponsorBlocker.svg", "popup.html", diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index a367acf5..d1d8fe03 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -570,13 +570,13 @@ "message": "Similar to \"sponsor\" except for unpaid or self promotion. This includes sections about merchandise, donations, or information about who they collaborated with." }, "category_selfpromo_guideline1": { - "message": "Applies to donations, memberships and custom merch" + "message": "Donations, memberships and custom merch" }, "category_selfpromo_guideline2": { "message": "Free shoutouts that don't add to the video" }, "category_selfpromo_guideline3": { - "message": "Generic and company-created merch is Sponsor" + "message": "Not for corporate designed products and merch" }, "category_exclusive_access": { "message": "Exclusive Access" @@ -588,12 +588,24 @@ "message": "This video showcases a product, service or location that they've received free or subsidized access to", "description": "Short description for this category" }, + "category_exclusive_access_guideline1": { + "message": "Entire video showcases something where recieved free or subsidized access" + }, "category_interaction": { "message": "Interaction Reminder (Subscribe)" }, "category_interaction_description": { "message": "When there is a short reminder to like, subscribe or follow them in the middle of content. If it is long or about something specific, it should be under self promotion instead." }, + "category_interaction_guideline1": { + "message": "Short reminders to like, subscribe or follow" + }, + "category_interaction_guideline2": { + "message": "Includes indirect reminders to comment" + }, + "category_interaction_guideline3": { + "message": "Not for general promotion, only calls to action" + }, "category_interaction_short": { "message": "Interaction Reminder" }, @@ -606,18 +618,36 @@ "category_intro_short": { "message": "Intermission" }, + "category_intro_guideline1": { + "message": "Interval without actual content" + }, + "category_intro_guideline2": { + "message": "Not for transitions with information" + }, "category_outro": { "message": "Endcards/Credits" }, "category_outro_description": { "message": "Credits or when the YouTube endcards appear. Not for conclusions with information." }, + "category_outro_guideline1": { + "message": "Don't include content, even if endcards are on screen" + }, "category_preview": { "message": "Preview/Recap" }, "category_preview_description": { "message": "Quick recap of previous episodes, or a preview of what's coming up later in the current video. Meant for edited together clips, not for spoken summaries." }, + "category_preview_guideline1": { + "message": "Clips that appear later, or in a future video" + }, + "category_preview_guideline2": { + "message": "Recap of a previous video" + }, + "category_preview_guideline3": { + "message": "Not for sections that add additional content" + }, "category_filler": { "message": "Filler Tangent/Jokes" }, @@ -627,6 +657,15 @@ "category_filler_short": { "message": "Filler" }, + "category_filler_guideline1": { + "message": "Tangential scenes only for filler or humor" + }, + "category_filler_guideline2": { + "message": "Distractions, bloopers, replays" + }, + "category_filler_guideline3": { + "message": "Not for scenes required to understand the topic" + }, "category_music_offtopic": { "message": "Music: Non-Music Section" }, @@ -636,12 +675,27 @@ "category_music_offtopic_short": { "message": "Non-Music" }, + "category_music_offtopic_guideline1": { + "message": "Sections not in official releases" + }, + "category_music_offtopic_guideline2": { + "message": "Non-music in a live performance" + }, "category_poi_highlight": { "message": "Highlight" }, "category_poi_highlight_description": { "message": "The part of the video that most people are looking for. Similar to \"Video starts at x\" comments." }, + "category_poi_highlight_guideline1": { + "message": "Section most people are looking for" + }, + "category_poi_highlight_guideline2": { + "message": "Can help skip past context" + }, + "category_poi_highlight_guideline3": { + "message": "Can skip to the title or thumbnail" + }, "category_livestream_messages": { "message": "Livestream: Donation/Message Readings" }, diff --git a/public/icons/bolt.svg b/public/icons/bolt.svg new file mode 100644 index 00000000..9c56393e --- /dev/null +++ b/public/icons/bolt.svg @@ -0,0 +1,37 @@ + + + + + + diff --git a/public/icons/campaign.svg b/public/icons/campaign.svg new file mode 100644 index 00000000..e31763a7 --- /dev/null +++ b/public/icons/campaign.svg @@ -0,0 +1,37 @@ + + + + + + diff --git a/public/icons/lightbulb.svg b/public/icons/lightbulb.svg new file mode 100644 index 00000000..8b7d434b --- /dev/null +++ b/public/icons/lightbulb.svg @@ -0,0 +1,37 @@ + + + + + + diff --git a/public/icons/music-note.svg b/public/icons/music-note.svg new file mode 100644 index 00000000..3bfd3616 --- /dev/null +++ b/public/icons/music-note.svg @@ -0,0 +1,37 @@ + + + + + + diff --git a/public/icons/star.svg b/public/icons/star.svg new file mode 100644 index 00000000..cb19a372 --- /dev/null +++ b/public/icons/star.svg @@ -0,0 +1,37 @@ + + + + + + diff --git a/public/icons/stopwatch.svg b/public/icons/stopwatch.svg new file mode 100644 index 00000000..56f9c1c7 --- /dev/null +++ b/public/icons/stopwatch.svg @@ -0,0 +1,37 @@ + + + + + + diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 6fb91a8d..dbd2e1a2 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -17,5 +17,125 @@ export function getGuidelineInfo(category: Category): TextBox[] { icon: "icons/right-arrow.svg", text: chrome.i18n.getMessage(`generic_guideline2`) }]; + case "selfpromo": + return [{ + icon: "icons/money.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline1`) + }, { + icon: "icons/campaign.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline2`) + }, { + icon: "icons/close-smaller.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline3`) + }, { + icon: "icons/segway.png", + text: chrome.i18n.getMessage(`generic_guideline1`) + }, { + icon: "icons/right-arrow.svg", + text: chrome.i18n.getMessage(`generic_guideline2`) + }]; + case "exclusive_access": + return [{ + icon: "icons/money.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline1`) + }]; + case "interaction": + return [{ + icon: "icons/lightbulb.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline1`) + }, { + icon: "icons/lightbulb.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline2`) + }, { + icon: "icons/close-smaller.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline3`) + }, { + icon: "icons/segway.png", + text: chrome.i18n.getMessage(`generic_guideline1`) + }, { + icon: "icons/right-arrow.svg", + text: chrome.i18n.getMessage(`generic_guideline2`) + }]; + case "intro": + return [{ + icon: "icons/check.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline1`) + }, { + icon: "icons/close-smaller.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline2`) + }, { + icon: "icons/segway.png", + text: chrome.i18n.getMessage(`generic_guideline1`) + }, { + icon: "icons/right-arrow.svg", + text: chrome.i18n.getMessage(`generic_guideline2`) + }]; + case "outro": + return [{ + icon: "icons/close-smaller.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline1`) + }, { + icon: "icons/segway.png", + text: chrome.i18n.getMessage(`generic_guideline1`) + }, { + icon: "icons/right-arrow.svg", + text: chrome.i18n.getMessage(`generic_guideline2`) + }]; + case "preview": + return [{ + icon: "icons/check.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline1`) + }, { + icon: "icons/check.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline2`) + }, { + icon: "icons/close-smaller.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline3`) + }, { + icon: "icons/segway.png", + text: chrome.i18n.getMessage(`generic_guideline1`) + }, { + icon: "icons/right-arrow.svg", + text: chrome.i18n.getMessage(`generic_guideline2`) + }]; + case "filler": + return [{ + icon: "icons/stopwatch.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline1`) + }, { + icon: "icons/stopwatch.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline2`) + }, { + icon: "icons/close-smaller.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline3`) + }, { + icon: "icons/segway.png", + text: chrome.i18n.getMessage(`generic_guideline1`) + }, { + icon: "icons/right-arrow.svg", + text: chrome.i18n.getMessage(`generic_guideline2`) + }]; + case "music_offtopic": + return [{ + icon: "icons/music-note.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline1`) + }, { + icon: "icons/music-note.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline2`) + }, { + icon: "icons/right-arrow.svg", + text: chrome.i18n.getMessage(`generic_guideline2`) + }]; + case "poi_highlight": + return [{ + icon: "icons/star.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline1`) + }, { + icon: "icons/bolt.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline2`) + }, { + icon: "icons/bolt.svg", + text: chrome.i18n.getMessage(`category_${category}_guideline3`) + }]; } } \ No newline at end of file