Skip to content
Advertisement

Tag: manifest.json

chrome.runtime.getURL() unable to inject javascript file into my webpage for manifest V3

Background: I’m making a chrome extension, and I must migrate it to MV3. I modified my manifest.json file to include web resources, but when I go to inject my resource from my content script using chrome.runtime.getURL, it says it can’t find my file. Specifically… GET: Chrome-extension:://”the_url/inject_script.js” net::ERR_FILE_NOT_FOUND I’m using the content root path to my web resource (javascript elements I

getting error while trying to play Audio from URL in chrome extension

I tried many ways to play a sound from the URL but it isn’t working. When I inspected the page have errors console: chrome-extension://invalid/:1 GET chrome-extension://invalid/ net::ERR_FAILED Uncaught (in promise) DOMException: Failed to load because no supported source was found. manifest.json: I’m doing this in options_page that is content.html. I have also given ‘web_accessible_resources’ permission to the script, but still

Advertisement