From 1a16290fff8650e29bdec9fa07a64bdc9c5c367e Mon Sep 17 00:00:00 2001 From: mlnrDev Date: Sun, 29 Oct 2023 15:10:54 +0100 Subject: [PATCH] Fix view counts --- content-scripts/src/modules/initialize.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content-scripts/src/modules/initialize.js b/content-scripts/src/modules/initialize.js index c170c396..75f2d26f 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, @@ -56,7 +57,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") { @@ -65,6 +66,7 @@ export const runDocumentMutations = throttle(async () => { changeTimelineTabs(data[KeyRemoveTimelineTabs], data[KeyWriterMode]); changeTrendsHomeTimeline(data[KeyTrendsHomeTimeline], data[KeyWriterMode]); changeFollowingTimeline(data[KeyFollowingTimeline]); + changeHideViewCounts(data[KeyHideViewCount]); addTypefullyPlug(); } } @@ -72,7 +74,6 @@ export const runDocumentMutations = throttle(async () => { saveCurrentReplyToLink(); addTypefullyReplyPlug(); checkUrlForFollow(); - changeHideViewCounts(); changeRecentMedia(); hideRightSidebar(); addSmallerSearchBarStyle();