Category "google-chrome-extension"

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

How can I replace my webRequest blocking with declarativeNetRequest?

I'm try to migrate my chrome extension to Manifest V3, and having some troubles with webRequest. I don't know how to replace the below source code to declarativ

Chrome manifest v3: runtime.lastError specify 'func' and 'files'?

I'm searching for a solution everywhere and I can't find nothing about this error. I'm trying to "update" a Chrome extension to manifest v3 and I get this error

chrome.tabCapture is undefined when extension icon is clicked

I am trying to use the chrome extension tabCapture API. To do this, I hooked up a simple background script that adds a click handler to the extension icon (via

Users can decompile Source Code, how can I safely access Databases and Servers?

So, Im programming a Chrome Extension. I want to store data in a Database. I logically dont want anyone else to have access to the database. How can I make it t

Hiding DOM elements with a chrome extension without causing a flicker

Preface: I am aware that there is a duplicate question out there. I am posting it again because it has no answers (and it's from 4 years ago). General descripti

Connect to MetaMask via chrome extension

I am making a chrome extension that requires MetaMask authentication. I started developing it as a web application, but as a chrome extension, it doesn't detect

MV3 Serviceworker won't wake up when sent a message from the contentscript

Is it an expected behaviour for a serviceworker to not respond to or wake up when a message has been sent from a content script or popup. And if so , how do I w

Intermittent CORS issue with FastAPI deployed on Heroku

I deployed a FastAPI based backend on Heroku and whenever I query the url via cURL or Postman, it works fine. However, when it queried from a chrome extension (

Can i modify theme colors real time with chrome extension

I'm curious if i can modify the theme colors based on a button click in a chrome extension. I couldn't find an answer reading the Chrome extension docs. Thx!

Can't disable controls in a youtube video

I am running a content.js on a youtube page and i want it to disable the controls of the youtube video. I am getting the video by video=document.querySelector('

Passing FormData/File Object from content script to background script in chrome extension with Manifest V3

I'm building a chrome extension where I get a file as input from the user and pass it to my background.js (service worker in case of manifest v3) to save it to

Javascript Tensorflow in Chrome Extension not working due to 'unsafe-eval'

I'm trying to update my Chrome Extension to Manifest v3. I use a JSTensorflow Model and it pops this error: Uncaught EvalError: Refused to evaluate a string as

Multiple re-renders when using react as content script

I'm currently learning how to develop chrome extension using React. However, i'm stuck with an issue where react re-renders like 3 times even with a very basic

How to connect a Chrome extension made with React to Metamask and other wallets?

I need to connect Metamask to a Chrome extension I'm doing. I'm not a crypto expert, I'm using ethers js and following some tutorials but the extension doesn't

After updating to the latest Redux Dev Tools extension I am getting: "Symbol.observable as defined by Redux and Redux DevTools do not match."

For some unknown issue after getting the latest update from the redux dev tools chrome extension I am getting the below warning message: Symbol.observable as d

Uncaught TypeError: Failed to construct 'URL': Invalid URL in chrome extension v3 when using messages

Here is a minimal extension for chrome in v3: manifest.json { "manifest_version": 3, "name": "Test", "version": "1.0", "description": "Test extension",

Why is the scope different in chrome extension's popup?

I'm experimenting with Google Chrome extensions. In a popup html I have a button that executes the readItalian function. italianBtn.addEventListener("click", as

chrome.scripting.executeScript doesn't work in background.js

i'm developing a chrome extension which will input some search conditions and then trigger a button to retrieve result automatically. Since the result can't be

How to stop CORB from blocking requests to data resources that respond with CORS headers?

I am developing a Chrome extension which makes requests from certain websites to an API I control. Until Chrome 73, the extension worked correctly. After upgrad