29,585 questions
Advice
0
votes
1
replies
21
views
In Wordpress Gutenberg editor, how to trigger change detection in a html block?
I'm trying to write a Chrome extension for editing a WordPress page. I'd like the extension to modify an HTML block. I've tried to modify the textarea element's value and textContent but these changes ...
Advice
0
votes
5
replies
157
views
Hey guys, I need some recommendations about a technical interview challenge
Thanks in advance — every bit of insight means a lot during this job hunt 🙏
0
votes
0
answers
35
views
Need help to integrate SSO with SAML for one of the applications through Chrome extension
I have one application which supports SSO login by SAML only. I want to create Chrome extension for that and want to give users option to login to that application using SSO from extension in order to ...
Best practices
0
votes
2
replies
113
views
Manifest v3 service workers: how to set up webrequest listeners for URLs defined by the users and stored in the storage?
This question is related to my question here, but it is still slightly different. However, it still concerns the problem that listeners must be registered during the first synchronous run, while the ...
Tooling
0
votes
0
replies
41
views
Is there an API to get users and rating data on Chrome Web Store extensions?
For example, extensionhub.io gets ratings and users, but chrome-stats.com gets a lot of information; how?
That picture below is my extension and I want to make my own website for it but I don't want ...
0
votes
1
answer
64
views
Scripting inject.js vs content.js in browser extension
My goal is to inject frontend code in a tab if its url matches my url. For that I did:
background.js:
chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
if (changeInfo?.url?....
0
votes
1
answer
72
views
Error on chrome.tabs.onUpdated for Chrome Extensions [duplicate]
Here's my background.js file:
chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
if (changeInfo.status === "complete" && tab.url && tab.url.includes("...
0
votes
0
answers
66
views
Unable to load unpacked Chrome extension inside Linux container using Puppeteer or CLI
I’m trying to load an unpacked Chrome extension inside a Linux-based Docker container to automate extension testing.
However, the extension does not load — neither when launching Chrome directly via ...
0
votes
0
answers
71
views
Using showPicker() in a chrome extension javascript
Here's the manifest.json:
"content_scripts": [
{
"js": [
"scripts/content.js"
],
"matches": [
"..."...
2
votes
1
answer
502
views
Why does WhatsApp Web IndexedDB return '@lid' IDs instead of phone numbers for some group participants?
I'm building a Chrome extension that lists a user's WhatsApp groups and exports the contact details of participants when the user selects one or more groups.
What I want: when the user selects groups ...
1
vote
1
answer
83
views
How to display notifications in manifest v3 service worker?
I'm having trouble displaying notifications from a chrome extension service worker while migrating from manifest v2 to v3.
chrome.notifications.create appears to be deprecated and throws an Unknown ...
0
votes
1
answer
70
views
Manifest v3 couldn't load the script file
I'm trying to inject my script into the sender tab but in service worker console there is an error:
Uncaught (in promise) Error: Could not load file: 'chrome-extension://...'.
But when I fetch() this ...
0
votes
0
answers
55
views
The sender sent an invalid JSON message; message ignored
I'm attempting to migrate a v2 chrome extension to manifest v3. The extension communicates with a Native Host application.
Apart from the Native Host messaging, the extension is rather simple, and ...
0
votes
1
answer
73
views
InboxSDK `registerComposeViewHandler` not firing for **inline** replies (works only when reply is popped out)
I’m building a Chrome extension for Gmail using InboxSDK v2. My registerComposeViewHandler works perfectly when I click Pop out reply (the floating compose window), but it never fires for an inline ...
0
votes
0
answers
27
views
WXT Targets The Entire Youtube UI
I was exploreing the WXT framework for building chrome extensions. I want to target a specific element on the youtube page and inject a button according to it.
import React from "react"
...
0
votes
0
answers
40
views
Jest/Puppeteer test for a Chrome Extension fails with timeout on Firestore getDoc, but manual tests and Cloud Function succeed
I am building a Manifest V3 Chrome Extension using Firebase and testing it with Jest and Puppeteer. My manual testing works perfectly, but one specific automated test consistently fails with a 30-...
2
votes
0
answers
271
views
How to Load Extensions in Chrome Version 139+ using Playwright?
Earlier with the removal of --load-extension flag in the launch arguments in Chrome 137, the workaround of using --disable-features=DisableLoadExtensionCommandLineSwitch (as mentioned in question) to ...
0
votes
0
answers
66
views
Debugging chrome extension that injects code
I have a chrome extension that injects a bunch of code to automatically fill in an HTML form on a couple of websites (like how simplify does for jobs) and stream it via websocket to that website’s ...
2
votes
0
answers
43
views
Chrome extension API contentSettings.javascript "block" with <all_urls> overrides site-specific allow permissions
I am writing a chrome extension that one-click toggles javascript for the browser (all pages), but I want those sites that I've whitelisted to still have JS permissions. From the Chrome Extension API ...
2
votes
1
answer
90
views
How to run the AdGuard extension in WebDriver?
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
from selenium....
1
vote
0
answers
58
views
How can I programmatically insert text into a Froala Editor instance from a Chrome Extension using TypeScript?
I'm developing a Chrome Extension and need to programmatically insert text into a Froala Editor instance on a webpage. I'm using TypeScript for the extension's development.
I've attempted various ...
1
vote
1
answer
63
views
How to send a message to all tabs in chrome extension manifest v3? [duplicate]
There is
chrome.runtime.sendMessage(...)
but it just broadcasts to runtime pages only (background/offscreen/options/etc...)
There is also
chrome.tabs.sendMessage(...)
but that lets you send a ...
-1
votes
1
answer
99
views
Button loads only for specific parts of the extension
I'm working on a chrome extension, using html, css and js only. For navigating in the extension there is a back button and i'm implementing the configurations button.
The back button works OK and ...
0
votes
1
answer
80
views
How to communicate to dapp wallet extensions (like MetaMask and Coinbase) from another extension, the way you can from a site
There's a few different ways of accessing dapp providers, but one of the most standard ways to check everything's good in the context you're running things is with a bog standard,
window....
0
votes
0
answers
62
views
Service Worker Failures on ChromeOS (Startup Timeout / DETACH_STALLED_IN_STOPPING)
I’m seeing a rare but recurring issue with my Chrome extension’s service worker.
The extension uses a workaround to keep the service worker persistent and always active.
It has an offscreen script and ...
1
vote
1
answer
95
views
Grammarly Chrome extension replaces my iframe dropdown options with __grammarly
I’m building a Wix Studio site. Inside it, I embed an iframe that loads a custom HTML page.
That page has an amCharts map and a dropdown (<select)> to switch datasets.
When the Grammarly Chrome ...
0
votes
0
answers
73
views
How to change Chrome color programmatically in manifest v3
I am working on an app that will get the weather in your location and change the color of chrome according to that data. However, I cannot figure out how to do this in manifest v3. I have not found ...
0
votes
0
answers
58
views
Redirect Mismatch Problem in google based in login for chrome extension
I am currently implementing google based login aunthentication for a chrome extension which is not live , it is in developement mode
i also setup the in google developer console where i put my chrome ...
1
vote
0
answers
81
views
How to dynamically disable "chrome_url_overrides" in a Chrome extension?
I am building a Chrome extension where I want to provide a toggleable custom New Tab page.
I have explored two approaches:
Programmatic override with chrome.tabs.update:
chrome.tabs.update(tab.id, { ...
1
vote
0
answers
53
views
Normalising size of page in captureVisibleTab in chrome extension?
I am looking to capture and store a "normalised" (fixed dimensions) preview of a web page and then store it for display in a page of a Chrome extension. The issue is when using chrome.tabs....
0
votes
0
answers
79
views
Cross-Browser Extension OAuth2 with Google Calendar API: Avoiding client_secret and redirect_uri_mismatch while keeping token refresh possible?
Problem
I'm building a browser extension that needs to authenticate with Google Calendar API across Chrome, Brave, Edge, and Firefox. I want persistent authentication with refresh tokens, but I'm ...
0
votes
0
answers
71
views
Chrome Extension stops working if service work dev tools is not open
A co-worker created a Chrome Extension using Javascript with functionality to take employees to different tools/pages we use when a prefix and some text are entered into the omnibar or highlighted and ...
1
vote
0
answers
61
views
In a chrome extension, I can't create a connection between background and content script files
I am new to developing chrome extensions and I can't create a connection between background and content script files, I have tried so many solutions but nothing worked. I am trapped inside this ...
0
votes
0
answers
45
views
Creation of the PIN button in the chrome extention's popup so that it won't close automatically [duplicate]
I'm working on a custom Chrome extension and I need some help implementing a "pin" button in the extension’s popup header.
The idea is that when the pin button is clicked, it should keep the ...
0
votes
0
answers
41
views
writing structure related to chrome.storage.sync.set [duplicate]
First time I encounter the form of
chrome.storage.sync.set({ var1, var2, var3 });
Which creates in storage something like:
// inspect -> Application -> Extension storage -> sync
var1: "&...
0
votes
0
answers
74
views
Find a DOM element on a Google Spreadsheet [duplicate]
This is a follow-up to this question I asked a year ago, about building a Chrome extension on top of a Google Spreadsheet. I'm trying to identify a hyperlink element in GSheets via my Chrome ext to ...
2
votes
1
answer
126
views
Connecting firebase RTDB to chrome extension with manifest V3
I'm developing a Chrome Extension using Manifest V3 and Firebase Realtime Database. I'm experiencing intermittent CSP (Content Security Policy) violations that only occur randomly, sometimes the ...
0
votes
0
answers
67
views
Chrome Extension Manifest V3: "Insecure CSP value" for gstatic.com in Ubuntu VM
I'm developing a simple Chrome extension that uses the Firebase SDK. I'm running into a persistent Content Security Policy (CSP) error that I can't solve.
My development environment is a brand new ...
0
votes
0
answers
46
views
Chrome Extension declarativeNetRequest rule blocks "docs.google.com/forms" but not "docs.google.com/document"
I am trying to build a Chrome extension that asks for confirmation before loading the site docs.google.com/document.
As a first step, I just want to block access to Google Docs entirely when the ...
0
votes
0
answers
59
views
How to load a custom Chrome extension on Linux without using GUI (via backend/root access)?
I am trying to load a custom Chrome extension on a Linux system, but I don't want to use the GUI. Currently, I use the "Load unpacked" option in Chrome's developer tools and select the ...
0
votes
1
answer
57
views
Can't use storage.local.set from content_scripts in Safari
I have a browser extension that I'm trying to port on Safari. On some devices/version of the browser (mainly on mobile versions), the following code will throw an error:
await chrome.storage.local.set(...
0
votes
0
answers
51
views
Download a pdf that is being streamed by Struts framwork
we have an old system build with Struts framework, and whenever a user wants a see pdf, it doesn't send it like regular pdf, but instead it streams it to the page and as an .action page.
When we try ...
0
votes
1
answer
119
views
Getting around X-Frame-Options DENY in a Chrome extension? (2)
I have an iframe loading inside an extension page but unfortunately the document inside the iframe embeds its own iframes whose Content-Security-Policy I still can't circumvent with ...
0
votes
0
answers
55
views
Chrome Omnibox suggestions not showing when async response is delayed
I'm implementing a Chrome extension using chrome.omnibox.onInputChanged.addListener with debounce and abort control. When the async operation (getKeywordSuggestions()) takes too long (5-10 seconds) ...
0
votes
0
answers
91
views
Chrome Extension Rejected: "Including remotely-hosted code" — Is ReactGA violating Manifest V3?
We are working on an Open Source (AGPL) Chrome extension: Digital Assistant Client
We recently submitted an update to our Chrome Extension (built with React + TypeScript) and it was rejected with this ...
0
votes
0
answers
73
views
How to integrate Google Picker API in a Manifest V3 Chrome Extension?
I'm developing a Chrome extension using Manifest V3, and I would like to integrate the Google Picker API to allow users to choose a folder on Google Drive before uploading a file.
However, including ...
0
votes
1
answer
103
views
Unable to open Vue Devtools from Toggle or Select Components in Firefox/Chrome on macOS
Environment:
OS: macOS (e.g., Sonoma or Ventura)
Browsers tested: Firefox (latest), Chrome (latest)
Vue Devtools version: [7.7.7]
Vue version: [e.g., Vue 3.4.21]
Devtools installation method: Browser ...
0
votes
0
answers
41
views
How to keep Chrome Extension popup open during Google login with launchWebAuthFlow?
I'm using chrome.identity.launchWebAuthFlow() in my Chrome Extension popup to log in users with Google (via Supabase).
Project created in React
enter image description here
The problem is: when i ...
0
votes
0
answers
49
views
Netlify Function works locally but gives 504 timeout in production
Context:
I want to show some records from mongoDB to my front-end chrome extension(iNotes). So, i need backend that will communicate with my mongoDB.
Problem:
I'm building a serverless function using ...
0
votes
0
answers
49
views
Local override equivalent as a chrome extension (mv3)
I noticed you can use local overrides in devtools, allowing you to edit a site's js content. I tried everything I could think of to replicate this as an extension, but I either got CSP blocked (Can't ...