From 9afd9cf88a1e1f72102153b9a012a0059a7f2678 Mon Sep 17 00:00:00 2001 From: HuiiBuh Date: Thu, 18 Aug 2022 16:12:58 +0200 Subject: [PATCH] Removed unused permissions Version 4.6.3 --- src/manifest_chrome.json | 5 ----- src/manifest_firefox.json | 3 +-- src/ts/background/BackgroundMessageHandler.ts | 10 +++++----- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/manifest_chrome.json b/src/manifest_chrome.json index ca7104b..cd00c0a 100644 --- a/src/manifest_chrome.json +++ b/src/manifest_chrome.json @@ -15,12 +15,8 @@ "options_ui": { "page": "options.html" }, - "declarative_net_request": { - "rule_resources": [] - }, "permissions": [ "downloads", - "declarativeNetRequest", "tabs", "*://*.instagram.com/*", "*://*.cdninstagram.com/*", @@ -36,7 +32,6 @@ { "matches": [ "*://*.instagram.com/*", - "*://*.cdninstagram.com/*" ], "js": [ "js/extension.js" diff --git a/src/manifest_firefox.json b/src/manifest_firefox.json index d78567b..c3dbd33 100644 --- a/src/manifest_firefox.json +++ b/src/manifest_firefox.json @@ -30,8 +30,7 @@ "content_scripts": [ { "matches": [ - "*://*.instagram.com/*", - "*://*.cdninstagram.com/*" + "*://*.instagram.com/*" ], "js": [ "js/extension.js" diff --git a/src/ts/background/BackgroundMessageHandler.ts b/src/ts/background/BackgroundMessageHandler.ts index efa5b25..6714442 100644 --- a/src/ts/background/BackgroundMessageHandler.ts +++ b/src/ts/background/BackgroundMessageHandler.ts @@ -24,11 +24,11 @@ export class BackgroundMessageHandler { private static async onUpdate(reason: OnInstalledDetailsType): Promise { if (reason.reason !== 'update') return; - - const options = browser.runtime.getURL('options.html'); - await browser.tabs.create({ - url: options, - }); + // + // const options = browser.runtime.getURL('options.html'); + // await browser.tabs.create({ + // url: options, + // }); } private static async onMessage(message: DownloadMessage): Promise {