diff --git a/content-scripts/src/modules/initialize.js b/content-scripts/src/modules/initialize.js index 09f0d93d..d653ae0c 100644 --- a/content-scripts/src/modules/initialize.js +++ b/content-scripts/src/modules/initialize.js @@ -1,6 +1,7 @@ import { KeyCommunitiesButton, KeyFollowingTimeline, + KeyHideViewCount, KeyListsButton, KeyRemoveTimelineTabs, KeyTopicsButton, @@ -39,7 +40,7 @@ export const addStylesheets = async () => { export const runDocumentMutations = throttle(async () => { extractColorsAsRootVars(); - const data = await getStorage([KeyWriterMode, KeyFollowingTimeline, KeyTrendsHomeTimeline, KeyRemoveTimelineTabs]); + const data = await getStorage([KeyWriterMode, KeyFollowingTimeline, KeyTrendsHomeTimeline, KeyRemoveTimelineTabs, KeyHideViewCount]); if (data) { if (data[KeyWriterMode] === "on") { @@ -48,13 +49,13 @@ export const runDocumentMutations = throttle(async () => { changeTimelineTabs(data[KeyRemoveTimelineTabs], data[KeyWriterMode]); changeTrendsHomeTimeline(data[KeyTrendsHomeTimeline], data[KeyWriterMode]); changeFollowingTimeline(data[KeyFollowingTimeline]); + changeHideViewCounts(data[KeyHideViewCount]); addTypefullyPlug(); } } saveCurrentReplyToLink(); addTypefullyReplyPlug(); - changeHideViewCounts(); changeRecentMedia(); hideRightSidebar(); addSmallerSearchBarStyle();