diff --git a/src/titles/titleRenderer.ts b/src/titles/titleRenderer.ts index 79f67f6..297ebfa 100644 --- a/src/titles/titleRenderer.ts +++ b/src/titles/titleRenderer.ts @@ -71,11 +71,7 @@ export async function replaceTitle(element: HTMLElement, videoID: VideoID, showC const title = titleData?.title; const originalTitle = originalTitleElement?.textContent?.trim?.() ?? ""; - if (title && await shouldUseCrowdsourcedTitles(videoID) - // If there are just formatting changes, and the user doesn't want those, don't replace - && (await getTitleFormatting(videoID) !== TitleFormatting.Disable || originalTitle.toLowerCase() !== title.toLowerCase()) - && (await getTitleFormatting(videoID) !== TitleFormatting.Disable - || await shouldCleanEmojis(videoID) || cleanEmojis(originalTitle.toLowerCase()) !== cleanEmojis(title.toLowerCase()))) { + if (title && await shouldUseCrowdsourcedTitles(videoID)) { const formattedTitle = await formatTitle(title, true, videoID); if (!await isOnCorrectVideo(element, brandingLocation, videoID)) return false; diff --git a/src/videoBranding/videoBranding.ts b/src/videoBranding/videoBranding.ts index 5f5e48a..e4bc3d8 100644 --- a/src/videoBranding/videoBranding.ts +++ b/src/videoBranding/videoBranding.ts @@ -290,8 +290,7 @@ export async function handleShowOriginalButton(element: HTMLElement, videoID: Vi if (result || (await Promise.all(promises)).some((r) => r)) { const title = await getVideoTitleIncludingUnsubmitted(videoID, brandingLocation); const originalTitle = getOriginalTitleElement(element, brandingLocation)?.textContent; - const customTitle = title && !title.original - && (!originalTitle || (cleanResultingTitle(cleanEmojis(title.title))).toLowerCase() !== (cleanResultingTitle(cleanEmojis(originalTitle))).toLowerCase()) + const customTitle = title && !title.original && await shouldUseCrowdsourcedTitles(videoID); if (!customTitle && !Config.config!.showIconForFormattedTitles && !await promises[1]) {