Questions tagged [chrome-extension-manifest-v2]

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.

76 questions
0
votes
0 answers

I have a problem with my chrome extension (made to accept automatically all the connection requests)

I'd like to develop a Chrome extension that allows me to accept automatically all the connection requests on Linkledin, without any button, just by installing the extension. My content.js is like…
0
votes
0 answers

Manifest v2 is being deprecated while Google ask Google Identity Services to be used on Manifest v2 only

First thanks to all SO members for growing the coder inside me that I am able to articulate my thoughts only after doing some homework on my own. Query: This seems like a contradictory statement from Google. In Identity Platform related…
0
votes
0 answers

How to convert chrome.scripting.executeScript to manifest v3?

I have a chrome extension in manifest v2 that I need to upgrade to v3. It's an extension that raises an alarm at a set interval in whichever tab is currently open. I had the following code in v2 - background.js var config = { message:…
0
votes
0 answers

combining video and audio with ffmpeg.wasm throws bad memory error

I am developing a chrome extension with manifest v2 which will take a video url and a audio url, combine them and then download the result. for that i am using FFmpeg.wasm. ffmpeg.wasm / @ffmpeg/ffmpeg : v0.9.6 ffmpeg.wasm-core / @ffmpeg/core :…
0
votes
0 answers

Chrome extension manifest v3: How to get DevTools WS URL from extension?

I want to get the Browser WS Endpoint of DevTools from my extension. What should I do? For example, I need this to connect via puppeteer. Maybe exists API from global chrome object?
0
votes
0 answers

Parsing request body in a Chrome extension listener returns "undefined"

I am building a Chrome extension that extracts user data from a registration form on a website. I have set up a listener to intercept the form data, but when I try to retrieve the user's first and last name using FormData, it returns…
0
votes
0 answers

Chrome extension listener not triggering on event

I am currently working on a Chrome extension that needs to capture and print the First and Last Name fields when a user registers on a certain webpage. However, I am facing an issue where the listener for the registration event is not being…
0
votes
0 answers

OAuth no longer working in Manifest V3 because of replacing ajax call with Fetch

I had to replace my ajax query when migrating from manifest v2 to v3 because apparently external I cannot use JQuery in background page. so I replaced below function: function ajaxCall(type, path, data, datatype, callback){ $.ajax({ …
0
votes
0 answers

Bypass CSP for GA4 on chrome extension

I'm developing a Chrome Extension and want to use GA4 for analytics. My manifest.json (v2) contains the following: "background": { "scripts": ["src/bg/background.js", "src/bg/ga4.js"], "persistent": true }, "content_security_policy":…
0
votes
0 answers

Modifying Chrome Extension with Manifest V3: Replacing chrome.webRequest API for Request Blocking Functionality

I am trying to create a Chrome extension using manifest v3, but the chrome.webRequest API is no longer available with the blocking option. This makes it difficult to block or modify network requests in my extension. I want to modify my extension…
0
votes
1 answer

JavaScript Chrome Extension: "AbortError: The user aborted a request." error

I got Uncaught (in promise) AbortError: The user aborted a request. error after clicking on my popup button, and selecting a folder on my computer Popup.js document.addEventListener('DOMContentLoaded', function() { …
0
votes
0 answers

Chrome Extension MV3 migration : How to convert background script that uses window and document to service worker?

I have a chrome extension which was built on v2 version. I'm using background script to initialise my app. Then in popup.js I'm using runtime.getBackgroundPages() to get the instance from background page and perform some…
0
votes
0 answers

How to deal with imported library dependent on Document object in MV3 service workers(background script)

I am in the process of migrating a chrome extension to MV3 . Now we use a library called Segment Analytics. This is basically for capturing events that happen . Basically content scripts & popup script pass events based on what actions are happening…
0
votes
0 answers

Trying to get info from each Google result in Chrome Extension

I'm trying to use the urls from a Google results page to get info of each url, using a Chrome Extension I developed. const items = document.querySelectorAll('div[jscontroller][jsaction][data-ved]'); var api = 'https://myapi.test'; var n =…
0
votes
0 answers

Promise based system to handle global state in MV3 chrome extensions (now that we cant use stateful global variables)

So I'm in the process of migrating from an MV2(persistent background page) extension to an MV3(non-persistent service worker). Now we cant use global variables to store any kind of state(Eg let's say a click counter). So according to official…