Questions for development related to Google Chrome extension using manifest version 2. Questions related to it should specify what manifest version being used as each version has its own syntax that is not supported by other version.
Questions tagged [chrome-extension-manifest-v2]
76 questions
1
vote
0 answers
EXTENSIONS: convert Firefox extension to Safari extension
I am trying to convert my firefox extension to a safari extension. To do that, I used these codes xcrun safari-web-extension-converter /path/to/extension .
In my package json, I wrote a script :
"start:safari": "npm run-script build:safari; xcrun…

Ceren Keklik
- 291
- 2
- 11
1
vote
1 answer
Changing Firebase target with Chrome Extension results in auth/invalid-credential
I've previously setup and followed these steps, and got it to work:
https://firebaseopensource.com/projects/firebase/quickstart-js/auth/chromextension/readme/#license
But cloning this extension, but with a different Extension ID, different firebase…

TrySpace
- 2,233
- 8
- 35
- 62
1
vote
0 answers
chrome.declarativeContent API's RequestContentScript permission does not work after restart of the browser/ closing and reopening site
I am trying to dynamically get permission to certain sites (Eg amazon.fr) using optional permission and once I get the permission I am injecting some JS into the sites for which I requested permissions using declarative content API's…

AnandShiva
- 906
- 11
- 22
1
vote
0 answers
how to make chrome extension code to run every time page changes
i have been trying to make a chrome extension to run every time a site changes without any success, i saw somewhere that i need to listen to chrome.tabs.onUpdated from a background process but it never prints anything
my manifest…

Brijraj
- 33
- 1
- 5
1
vote
1 answer
How to fix Content Security Policy error? (Chrome Extension)
I was building a chrome extension and used some icons from font awesome. However, those icons aren't loading because of the following error-
For reference, here is the manifest.json file-
{
"manifest_version": 2,
"name": "Safe and Secure",
…

Zaid Ahmad
- 87
- 12
1
vote
1 answer
Chrome Extension | Multiple alarms going off at once
I am creating a task reminder extension. The user has an option to keep adding tasks and set reminders for each task.
I am using chrome.storage to store these tasks and using onChanged listener on storage to create an alarm for each task added to…

ms394
- 109
- 7
1
vote
0 answers
Chrome Extension - Monitoring network traffic with body data in background
I want to monitor the network traffic from background.js (or content script) on any page with response body data.
I tried these before:
chrome.devtools.network which allows us to monitor the network only when devtool is open. (I need to do this in…

ibrahimAKIN
- 38
- 6
1
vote
0 answers
How do I get a list of PWA's (and there associated launch urls) that are running from a chrome extension?
I have a chrome extension. The task is to get a list of PWA's (installed from Chrome) that are running on the OS and fetch the launch URL's of all those PWA's. I am not able to find any API provided by chrome extensions to achieve this. Would be…

AbhinavHegde
- 11
- 1
1
vote
2 answers
Auto update Chrome extension during development with CI/CD and update.xml
I have a Chrome Extension in development, locally which is a React application.
I have set up a CI/CD pipeline so that the React app is built with yarn build to produce the dist directory containing the app files and the manifest.json. The pipeline…

Dan Cook
- 1,935
- 7
- 26
- 50
1
vote
0 answers
Getting Chrome Extension content script to recognize delayed change in URL hash
I have a Chrome Extension (currently manifest v2, but will soon upgrade to v3) that needs to work with a SPA that simulates page changes by changing the hash in the URL.
Example:
Page 1: https://www.example.com/somedir/#page1
Page 2:…

Jon Sagara
- 1,122
- 2
- 11
- 16
0
votes
0 answers
ChromExtension: SidePanel track down the tab changes and render on sidepanel UI
I have a case where I want to track down the click on action item under sidepanel
The below code
chrome.sidePanel
.setPanelBehavior({ openPanelOnActionClick: true }).addListener(callback)
throws error
Uncaught TypeError:…

Matey Johnson
- 223
- 1
- 2
- 12
0
votes
0 answers
Is there a way to use PSPDFKit APIs to inject text into an existing annotation?
Could a Chrome Extension add a script to an existing annotation created by PSPDFKit in order to add a string to an existing annotation instance/bubble?
PSPDFKit APIs are…

11teenth
- 1,853
- 1
- 15
- 28
0
votes
0 answers
How to Remove 'Managed by Your Organisation' Notifications in a Custom-Built Chromium Browser?
I'm working on a custom-built Chromium browser, and I have successfully managed to implement certain policies, including forced extension installation. However, this has led to the display of "Managed by your organisation" notifications in several…

DotanVG
- 1
- 1
0
votes
0 answers
How to run user scripts (dynamic js) in a packed chrome extension MV3 (Chrome web store)?
I need to run a script entered by user in every tab user opens. Is there a way to do this in a packed chrome extension which would be accepted by the web store.
Note : This has already been answered for unpacked extension Chrome Extension: How do I…

Kritidipto Ghosh
- 111
- 6
0
votes
0 answers
Unable to access web_accessible_resource when using extension_ids options in manifest.json
I have an MV3 extension where I have a file which I want to access via content script.
I am unable to do that when I specify "extension_ids": ["myextId"] in manifest.json.
However when I use "matches": [""], I am able to access…

Kritidipto Ghosh
- 111
- 6