Category "google-chrome-extension"

How to use non-ascii characters in the regex filter of the declarativeNetRequest API for a Google Chrome extension?

I am creating a Chrome extension but just found out that it's not possible to use non-ascii characters in the regex filter of the declarativeNetRequest API. Whi

How to get the time spent on a tab in Chrome? [duplicate]

I am working on a chrome extension, and I need the time spent on each tab. I'm using chrome.tabs api.

Opening chrome extension programmatically with multiple entry points

I'm opening a chrome extension programmatically from the background script with the following code: background.js chrome.windows.getLastFocused().then((window)

Content-Security-Policy with 'unsafe-inline' not working

In my chrome extension code, I need to inject a <script> tag with code, but I get this error: Refused to execute inline script because it violates the fol

How to use recaptcha v3 in chrome extension?

Is it possible to use reCaptcha V3 in chrome extension. If yes, than how to implement it? Currently I am implementing it and facing error Refused to load the sc

Problem with jQuery when using chrome extensions popup

There is a website and there is a button that has the disabled tag. I'm trying to write a popup extension where there is a button, by clicking on which this tag

chrome devtool performance waterfall difference between Chrome and Chromium?

I'm trying to see the call stack of a piece of code, in Chrome and Chromium, they showed different results. I have already disabled all extensions in my Chrome,

ExtensionInstallForcelist with locally stored extensions

Values in ___\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist registry now can not be used to automatically install locally stored extensions? Extensi

Lighthouse CLI for performance while running extension

I have an extension that I would like to measure webpage performance with and w/o it running. I use Lighthouse CLI: lighthouse https://www.bing.com/search?q=cur

Chrome extension message sending from background to content issue

I'm trying to send the current active URL from any updated tab to it's respective content script with the code below. I'm having trouble confirming receipt of a

Chrome Extension manipulate DOM ONLY if tab is in focus

I have a Chrome Extension that subscribes to a WebSocket and pops a window when a message comes down that socket. This runs in a background script, so no matte

ManifestV3 new promise error: The message port closed before a response was received

I'm working on an extension that does a lot of message-passing between its content scripts and the background service worker (manifest V3), and I've noticed an

chrome.runtime.sendmessage not working in chrome extentions

hello I have a question I send to backgroud.js from content.js; but it is append error : Could not establish connection. Receiving end does not exist. but it w

How do I send fetched data from chrome extension background script to content script?

Once an event is triggered in my content script, it send a message request to the background script and waits for a response. content.js chrome.runtime.sendMess

Chrome API chrome.desktopCapture.chooseDesktopMedia - How to get the id of selected tab?

I am using desktopCapture.chooseDesktopMedia with only ["tab"] option to choose the tab to be streamed. After making the selection, chrome doesn't automatically

Chrome extension to replace text on webpage works only after manually refreshing webpage sometimes

I am developing a chrome extension to replace specific texts on webpage. For some websites, it works only after refreshing webpages manually with F5. For exampl

Communication between multiple users of one extension

I am planning on building an chrome extension that would allow 2+ users communication on different devices. Basically one user would fill out the textarea and s

File reference in Chrome extension

I would like to load a model in contentScript.js using url './model/model.json' const MODEL_URL = './model/model.json'; const model = tf.loadLayersModel(MODEL_U

Mutation observer not being called when there's a change in Shadow Dom tree

i have a running extension where i use combination of mutation observer and tree walker to filter out text nodes and embed React component on that page where i

how to get [chrome.instanceID.getID] , [chrome.storage.sync.get] by async & await?

How do you get the information for the Chrome extension by using async and await? [chrome.instanceID.getID] [chrome.storage.sync.get] We tried this code: async