From 704b9b5f3ad433700444323e810b29bf79d84363 Mon Sep 17 00:00:00 2001 From: hanyd Date: Wed, 11 Dec 2024 11:29:48 +0800 Subject: [PATCH] outdated util --- src/utils.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 98b63536..10e9e44f 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -230,14 +230,6 @@ export default class Utils { return referenceNode; } - isContentScript(): boolean { - return window.location.protocol === "http:" || window.location.protocol === "https:"; - } - - isHex(num: string): boolean { - return Boolean(num.match(/^[0-9a-f]+$/i)); - } - async addHiddenSegment(videoID: VideoID, segmentUUID: string, hidden: SponsorHideType) { if ( (chrome.extension.inIncognitoContext && !Config.config.trackDownvotesInPrivate) ||