Questions tagged [chrome-extension-manifest-v3]

ManifestV3-specific questions about development of Google Chrome extensions. Make sure to add the main tag `google-chrome-extension`.

Official introduction/documentation: https://developer.chrome.com/docs/extensions/mv3/intro/

935 questions
106
votes
16 answers

Download content video from video stream with a path of .TS or .m3u8 file through actual code so i can make chrome extension

Videos on most sites make use of progressive downloading, which means that the video is downloaded to my computer, and easy to trace. There are lots of extensions out there to do this, and even in the dev-tools this is easily done. On certain…
67
votes
1 answer

How do I import scripts into a service worker using Chrome extension manifest version 3?

I am trying to migrate my chrome extension from manifest version 2 to 3. Now that background scripts are replaced by service workers in manifest v3, I can no longer use a html file and refer js files in script tags. Is there any way I can import my…
26
votes
2 answers

Chrome extension manifest v3 Content Security Policy

I am trying to load (inject) in page a javascript code. The javascript file is local to the extension. the filepath is 'js/somefile.js'. const basePath = chrome.runtime.getURL(''); fetch(chrome.runtime.getURL(filePath), { mode: 'same-origin' })…
25
votes
1 answer

executeScript is undefined or not a function in a ManifestV3 extension

Why is this function from Chrome not working? I'm trying this example: https://developer.chrome.com/docs/extensions/mv3/content_scripts/#programmatic. I'm developing an extension for chrome and sending a message from popup.js to service worker…
12
votes
1 answer

Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response

I am finding the 'Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received' error in the background.js. My chrome extension works but the dev tools…
11
votes
1 answer

Refused to execute inline script because it violates the following Content Security Policy directive (Chrome Extensions Manifest 3)

I'm trying to migrate my Chrome extension from Manifest 2 to Manifest 3 but I'm getting the following error Refused to execute inline script because it violates the following Content Security Policy directive: "script-src…
user924
  • 8,146
  • 7
  • 57
  • 139
10
votes
2 answers

CORS issue during HTTP request from background service worker in Safari web extension

Link to a repo with the Xcode project to test the issue: Test CORS Issue This extension uses Manifest v3 and I have example.com in host_permissions "host_permissions": [ "*://example.com/*" ] When I run fetch("https://example.com") in…
10
votes
2 answers

Chrome extension: DOMParser is not defined with Manifest v3

I have developped an extension to scrape some content from web page and up to now it was working fine but since I switched to manifest v3, the parsing doesn't work anymore. I use the following script to read the source…
Laurent
  • 1,465
  • 2
  • 18
  • 41
9
votes
1 answer

How do I include a wasm file compiled by golang in a chrome extension?

I've tried everything in here: Golang to wasm compilation And I can't get past: WebAssembly.instantiate(buffer, {wasi_snapshot_preview1: ""}) WebAssembly.instantiate(buffer, {go: {debug: ""}}) // (i'm making them empty strings just to show I need…
9
votes
0 answers

Chrome extension wtih manifestv3 - service worker doesn't wake up

I have a background srcipt defined like "background": { "service_worker": "background.js" }, and a content script "content_scripts": [ { "matches": [ "*://youtube.com/*" ], "js": ["content-script.js"] …
9
votes
1 answer

Maintaining a persitant connection in a MV3 Chrome Extension

I'm trying to build a chrome extension that updates its badge every time some event happens on my server- in this case, my server is receiving a webhook from Zoom and then informing my chrome extension that the event occurred. From there my chrome…
9
votes
3 answers

Error in event handler: ReferenceError: window is not defined chrome extension with manifest v3

I am using manifest version 3 for chrome extension this error I face in background js : Error in event handler: ReferenceError: window is not defined chrome extension with manifest v3 "manifest_version":3, "permissions":["contextMenus","storage",…
9
votes
2 answers

Chrome Extension cause "Uncaught (in promise) Error: Cannot access a chrome:// URL"

I am following how to make chrome extension getting started that is posted in chrome official site https://developer.chrome.com/docs/extensions/mv3/getstarted/ And I copied and pasted all code and run on the same way. But in my case, When I run…
9
votes
0 answers

How to avoid multiple simultaneous service workers in MV3 Chrome extension?

I am in the process of converting a Chrome extension from manifest version 2 (MV2) to manifest version 3 (MV3). In the MV2 version, the background page script has a prominent role in the extension: At startup, the background script reads in a large…
8
votes
2 answers

Uncaught (in promise) Error: Error: Adapter 'http' is not available in the build

I am trying to use axios in React chrome extension module, but I am facing this issue. Uncaught (in promise) Error: Error: Adapter 'http' is not available in the build // background.ts import axios from…
1
2 3
62 63