From 547a8e6765e34f55d06d60841a897ed2d7df3ae6 Mon Sep 17 00:00:00 2001 From: Dominic Rando Date: Sun, 10 May 2026 20:07:10 -0400 Subject: [PATCH] Updated manifest version and fixed deprecated Chrome method --- extension/contentscript.js | 2 +- extension/manifest.json | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/extension/contentscript.js b/extension/contentscript.js index 74c8c55..c805423 100644 --- a/extension/contentscript.js +++ b/extension/contentscript.js @@ -1,6 +1,6 @@ function inject(url) { var s = document.createElement('script'); - s.src = chrome.extension.getURL(url); + s.src = chrome.runtime.getURL(url); s.onload = function() { this.remove(); }; (document.head || document.documentElement).appendChild(s); } diff --git a/extension/manifest.json b/extension/manifest.json index 73fb3cf..e419430 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -8,6 +8,11 @@ "js": ["contentscript.js"], "run_at": "document_start" }], - "web_accessible_resources": ["lib.js", "injected.js"], - "manifest_version": 2 + "web_accessible_resources": [ + { + "resources": ["lib.js", "injected.js"], + "matches": [""] + } + ], + "manifest_version": 3 }