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
0
votes
0 answers
Avoiding differential_fingerprint for Chrome extension
I'm trying to modify an extension for my own use which was working for a long time in developer mode. However I've a fresh installation of my Ubuntu with chrome verion 100.0.4896.88 , and this does not work anymore.
The extension is copy all urls…

user2194805
- 1,201
- 1
- 17
- 35
0
votes
2 answers
how to match both https and http in matches (manifest.json)
At the moment I've got it like this:
"matches": ['https://google.com/*', 'http://google.com/*']
Is there any way to combine these 2 URLs into one allowing both https and http?
(Manifest V3)

SamJones
- 71
- 4
0
votes
0 answers
Google chrome extension - the main window is closing after getting the code from redirect url
I am trying to develop a login OAuth system in the google chrome extension, notwithstanding, The main window is been disappeared when I attempt to get the response back from the callback.
//…

MD SHAYON
- 7,001
- 45
- 38
0
votes
0 answers
Can't migrate background script to v3 in Chrome extension
I try to migrate my manifest from v2 to v3 and fail with background scripts. I get an error unexpected token. I think my syntax is correct. What I'm doing wrong? How can I migrate this setup with multiple background scripts?
manifest v2
{
…

Evgeniy
- 2,337
- 2
- 28
- 68
0
votes
1 answer
How long will Manifest v2 be supported in developer mode?
Here they say that in June 2023 Manifest v2 extension will no longer run in Chrome: https://developer.chrome.com/docs/extensions/mv3/mv2-sunset/
Does it also mean that it won't be possible to load manifest v2 extensions in developer mode? Are there…

teg_brightly
- 468
- 6
- 20
0
votes
1 answer
Is it possible to keep a popup hidden until some code is executed?
So, I have this extension, and it should show a custom popup on the page when the icon is clicked, and by "custom popup", I mean, something rendered inside an

Levy Barbosa
- 342
- 1
- 5
- 13
0
votes
0 answers
Chrome extension popup URL
I am trying to add Discord OAuth2 to my Chrome extension so user can login by Discord account and it works fine. It opens new tab, lets user login and closes the tab. The problem is I do not know what should I put in redirect_uri so that after user…

Sowam
- 1,674
- 3
- 12
- 30
0
votes
0 answers
How to replace popup in chrome extension?
I made a chrome extension and now I have two versions of my popup folders side to side in two languages. They both contain popup.html, popup.css and popup.js. The question is, how do I get them to swap on user input? Thanks!

Andrew Howard
- 1
- 1
0
votes
0 answers
How do you get the URL with activeTab inside of a webRequest callback fn?
Objective
I'm trying to get the active tab's url when the user goes to a new website. The chrome web store has suggested that I remove the tabs permission and use activeTab instead. I don't have a content script and only need the active URL.
Current…

Ross Jacobs
- 2,962
- 1
- 17
- 27
0
votes
1 answer
How can i get the console log of the current website opened in a iframe or page using a chrome extensions
How can i get the console logs of the current website opened in a iframe or page using a chrome extensions, i am using chrome debugger protocol for that but i am able to figure the logs
chrome.tabs.query({ currentWindow: true, active: true },…

MAYANK SHARMA
- 7
- 2
0
votes
1 answer
Load Chrome Extensions in ElectronJS
Could anyone please tell me how to inject my js via Chrome Extensions in ElectronJS? I have an extension (manifest v2) that works in Chrome. It loads in electron (I see an object after await loadExtension() call), but its code is not inserted (I…

dortonway
- 439
- 1
- 5
- 17
0
votes
1 answer
How to load an unpacked chrome extension on a new Chrome Profile?
I am developing an unpacked local chrome extension with manifest version 2 that uses the chrome.identity API which currently works on my main Chrome Profile, and I'd also like to install it on my second Chrome Profile.
However, i am getting this…

Lucas Mendonca
- 387
- 3
- 13
0
votes
1 answer
Listeners not working for Chrome Rich Notification API ManifestV2- Chrome Extension
I'm unable to enter into any of the listener functions for notifications API with manifest V2. I'm able to execute the callback function after Notification is displayed. Also I can see that the chrome.notifications.onClicked.addListener is present…

Neel Dsouza
- 1,342
- 4
- 15
- 33
0
votes
1 answer
Content script doesn't communicate with background script - chrome extension
I'm trying to send new tab URL from background.js to content.js. The .sendMessage() performs but doesn't get to the content.js
background.js:
chrome.tabs.onUpdated.addListener(
function (tabId, changeInfo, tab) {
if (changeInfo.url) {
…

Yarden Saada
- 126
- 1
- 4
-3
votes
2 answers
HTML button that uses Javascript to take whole webpage screenshot and saves it
I am new to chrome extensions and I am trying to build a google chrome extension that takes a screenshot and saves it on the PC. I've managed to create a HTML button in my popup page and link it to a content-script.js but I can't seem to get how to…

cholakisas
- 3
- 2