From 8c60f25d4aa471538c482c72fbb7d5f48e4e097b Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 6 Feb 2022 23:20:01 -0500 Subject: [PATCH] Don't save downvotes in incognito --- src/utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.ts b/src/utils.ts index f593253f..747eaba4 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -490,6 +490,8 @@ export default class Utils { } async addHiddenSegment(videoID: VideoID, segmentUUID: string, hidden: SponsorHideType) { + if (chrome.extension.inIncognitoContext) return; + const hashedVideoID = (await this.getHash(videoID, 1)).slice(0, 4) as VideoID & HashedValue; const UUIDHash = await this.getHash(segmentUUID, 1);