aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAjay <[email protected]>2021-12-26 20:16:26 -0500
committerAjay <[email protected]>2021-12-26 20:16:26 -0500
commitc5b72a01a2da17e69753d81c212faccdffbef147 (patch)
treecf0073b76beec5f68e88005fbe6aec542f6512a5 /src
parent8ade66d7b3d4bf422585c1e93884a7a34e24626f (diff)
downloadSponsorBlock-c5b72a01a2da17e69753d81c212faccdffbef147.tar.gz
SponsorBlock-c5b72a01a2da17e69753d81c212faccdffbef147.zip
Remove filler update notice
Diffstat (limited to 'src')
-rw-r--r--src/config.ts5
-rw-r--r--src/content.ts20
2 files changed, 3 insertions, 22 deletions
diff --git a/src/config.ts b/src/config.ts
index 344a7b62..d6c412c6 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -51,7 +51,6 @@ interface SBConfig {
locked: string
},
scrollToEditTimeUpdate: boolean,
- fillerUpdate: boolean,
// What categories should be skipped
categorySelections: CategorySelection[],
@@ -203,7 +202,6 @@ const Config: SBObject = {
autoHideInfoButton: true,
autoSkipOnMusicVideos: false,
scrollToEditTimeUpdate: false, // false means the tooltip will be shown
- fillerUpdate: false,
categorySelections: [{
name: "sponsor" as Category,
@@ -392,6 +390,9 @@ function fetchConfig(): Promise<void> {
}
function migrateOldFormats(config: SBConfig) {
+ if (config["fillerUpdate"] !== undefined) {
+ chrome.storage.sync.remove("fillerUpdate");
+ }
if (config["highlightCategoryAdded"] !== undefined) {
chrome.storage.sync.remove("highlightCategoryAdded");
}
diff --git a/src/content.ts b/src/content.ts
index 529b3471..47f27f68 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -333,26 +333,6 @@ async function videoIDChange(id) {
// Clear unsubmitted segments from the previous video
sponsorTimesSubmitting = [];
updateSponsorTimesSubmitting();
-
- // Filler update
- if (!Config.config.fillerUpdate) {
- Config.config.fillerUpdate = true;
-
- utils.wait(getControls).then(() => {
- const playButton = document.querySelector(".ytp-play-button") as HTMLElement;
- const allCategories = ["sponsor", "intro", "outro", "selfpromo", "interaction"];
- if (playButton && allCategories.every((name) => Config.config.categorySelections.some((selection) => selection.name === name))
- && utils.getCategorySelection("filler") === undefined) {
- new Tooltip({
- text: chrome.i18n.getMessage("fillerNewFeature"),
- link: "https://wiki.sponsor.ajay.app/w/Filler_Tangent",
- referenceNode: playButton.parentElement,
- prependElement: playButton,
- timeout: 10
- });
- }
- });
- }
}
function handleMobileControlsMutations(): void {