aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-03-18 21:12:56 -0400
committerAjay <[email protected]>2023-03-18 21:12:56 -0400
commit9831c3393f8ecb90d3b35f32b4b1a138c5e69259 (patch)
tree25c523b14ab1ee6e7f6f9ac46c4f2fd96fe51223
parent09511e8b3d67a539a637a8b33b9bd0fe023f6548 (diff)
downloadSponsorBlock-9831c3393f8ecb90d3b35f32b4b1a138c5e69259.tar.gz
SponsorBlock-9831c3393f8ecb90d3b35f32b4b1a138c5e69259.zip
Remove chapters update message
-rw-r--r--public/_locales/en/messages.json3
-rw-r--r--src/content.ts22
2 files changed, 0 insertions, 25 deletions
diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json
index 77d68cb7..e5c8d69a 100644
--- a/public/_locales/en/messages.json
+++ b/public/_locales/en/messages.json
@@ -1190,9 +1190,6 @@
"message": "New Feature: Crowd-sourced custom chapters. These are custom-named sections in videos that can be stacked to get more and more precise. Purchase a license to view the chapters submitted on this video such as: ",
"description": "After the comma, a list of chapters for this video will appear"
},
- "chapterNewFeature2": {
- "message": "New Feature: Crowd-sourced custom chapters. These are custom-named sections in videos that can be stacked to get more and more precise. You have access for free, enable in options."
- },
"unsubmittedSegmentCounts": {
"message": "You currently have {0} on {1}",
"description": "Example: You currently have 12 unsubmitted segments on 5 videos"
diff --git a/src/content.ts b/src/content.ts
index cf1bbf8b..d9c6a928 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -1008,28 +1008,6 @@ async function sponsorsLookup(keepOldSubmissions = true) {
&& Config.config.showChapterInfoMessage
&& Config.config.skipCount > 200;
- if (!showChapterMessage
- && Config.config.showChapterInfoMessage
- && Config.config.payments.freeAccess) {
- Config.config.showChapterInfoMessage = false;
-
- if (!utils.getCategorySelection("chapter")) {
- const prependElement = document.querySelector(".ytp-chrome-bottom") as HTMLElement;
- if (prependElement) {
- Config.config.showChapterInfoMessage = false;
- new Tooltip({
- text: chrome.i18n.getMessage("chapterNewFeature2"),
- linkOnClick: () => void chrome.runtime.sendMessage({ "message": "openConfig" }),
- referenceNode: prependElement.parentElement,
- prependElement,
- timeout: 1500,
- leftOffset: "20px",
- positionRealtive: false
- });
- }
- }
- }
-
const categories: string[] = Config.config.categorySelections.map((category) => category.name);
if (showChapterMessage && !categories.includes("chapter")) categories.push("chapter");