Questions tagged [google-chrome-extension]

Extension development for the Google Chrome web browser. You write them using web technologies such as HTML, JavaScript, and CSS.

Filter by
Sorted by
Tagged with
1 vote
0 answers
14 views

Need help regarding Chrome extension dev

I am trying to pass a url on the current tab from contentScript to background and display it in console. But I am alaways getting one error : Uncaught (in promise) Error: Could not establish ...
Abhishek Sinha's user avatar
0 votes
0 answers
12 views

FireFox proxy connection using firefox proxy api

I am having a proxy server and want to inject in my firefox browser using firefox api below after injecting using let proxySettings = { proxyType: "autoDetect", http: "proxy.org:...
Ahmed Faraz's user avatar
-1 votes
1 answer
16 views

node: --import is not allowed in NODE_OPTIONS

I had this issue when I tried to run refined-github extension in the development environment: The error code was: node: --import is not allowed in NODE_OPTIONS ERROR: "build:webpack" exited ...
a0m0rajab's user avatar
  • 121
0 votes
0 answers
14 views

how to use chrome.process api to get my chrome extension memory and resource usage?

Is there a way I programmatically get CPU usage and memory usage for my chrome extension? I checked few resources on chrome API that I can use chrome.process API to fetch the data, but I am not able ...
Aryan Jangid's user avatar
0 votes
1 answer
21 views

I'm trying to inject my content script on twitter but not working. What is the possible solution

{ "name": "React Extension", "description": "Chrome Extension in React!", "version": "1.0.0", "manifest_version": 3, ...
Kani35000's user avatar
0 votes
1 answer
36 views

Text input unresponsive, not accepting text despite typing cursor appearing on mouseover

I'm working on a Chrome extension that allows users to input exact time locations into their video player. It's a simple overlay that appears over a video frame. It works on YouTube videos (although I ...
Chris's user avatar
  • 94
0 votes
0 answers
22 views

Chrome Verified Access API always fails with PERMISSION_DENIED (The caller does not have permission")

We have built a ChromeOS extension that calls "chrome.enterprise.platformKeys.challengeKey" and sends the signed challenge to our backend. We have this extension force installed on our ...
Martijn's user avatar
0 votes
0 answers
15 views

Using chrome.storage inside React app causes Uncaught (in promise) Error: Invalid context type provided error

I'm trying to get local storage data inside a Chrome extension which is React add compiled with Webpack: chrome.storage.local.get("tasks").then((res) => { console.log(res); }); And ...
Eugene's user avatar
  • 954
0 votes
0 answers
15 views

How to add a side popup button to a chrome extension?

For example, going to a page on Amazon, the Honey chrome extension has this popup on the side that when you hover over, has a bigger panel. How do I get this smaller side button to show up on webpages?...
Shayan Yasir's user avatar
-2 votes
0 answers
14 views

Chrome extension v3 cant use new Uint8Array() api in background.js

i dev a chrome extension,the logical is record the voice and transfer to the text , i get the recorded blob and transfer it to base64 in order to passing it to backgroundJs correctly,sure it np but ...
Aubry's user avatar
  • 1
0 votes
1 answer
29 views

axios error code 499 for chrome extension

i'm using axios to send some queries to leetcode to access their graphql API. I'm using a chrome extension that reads the necessary cookie credentials so that i can use it as auth for the API. however,...
yuz's user avatar
  • 19
0 votes
1 answer
16 views

The service_worker script failed to load. error in Safari extension, converted from chrome extension

I have converted a web extension originally made for chrome to safari, using the tool documented at https://developer.apple.com/documentation/safariservices/safari_web_extensions/...
Kristian Martinez's user avatar
0 votes
0 answers
18 views

How to pass information from content script to react component for chrome extensions?

I have a content script in my chrome extension that scrapes a couple values from the page. How would I go about sending the captured information down into React? I'm using a v2 manifest. Any guidance ...
fynmnx's user avatar
  • 571
-1 votes
0 answers
24 views

How can I fix JavaSceript error when opening chrome

Failed to load extension from: C:\Users\gm_r\AppData\Local\Default. Could not load javascript 'src/letters/gmail.js' for content script Not sure what I did, I wasn't getting it before. Anyone knows ...
Gabriel Madrigal's user avatar
0 votes
0 answers
20 views

How to use Vuetify in a chrome extension without build/bundler tools?

I'm creating a Chrome extension and want to use Vue.js and Vuetify for the popup UI. The extension is using manifest version 3 (so, tighter CSP restrictions compared to v2). I do not want to use any ...
Mahozad's user avatar
  • 19.4k
0 votes
0 answers
13 views

How do I use chrome-types in an Angular application?

I'm starting to learn Chrome Extension development using angular and would like to use chrome-types package but I am having great difficulty import/using it. My IDE, IntelliJ and the build complain ...
D-Dᴙum's user avatar
  • 7,711
0 votes
0 answers
7 views

webscraper.io only scraping 18 product links only instead of scraping all 60 product links in the website

I am trying to scarp all the product links from this site using wesbscraper.io chrome extension- https://www.namshi.com/uae-en/women-clothing-dresses-casual/new-products/ Here each pages has 60 ...
Roopali Singh's user avatar
0 votes
0 answers
8 views

In which "dimension" lives chrome.storage data in Chrome extensions (manifest v3)? [duplicate]

I developed a chrome extension, and it uses chrome.storage to save some (small) amount of information. In my PC, it works fine, both as unpacked extension in dev environment and when download from ...
César Rodriguez's user avatar
0 votes
0 answers
13 views

Chrome extension using React js: Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist [duplicate]

I'm developing a Chrome extension with React to implement a light/dark mode toggle for a web app. However, I'm encountering an error that I'm having trouble resolving: Uncaught (in promise) Error: ...
Wamz's user avatar
  • 89
0 votes
1 answer
33 views

Chrome how to get the browser zoom level (from touchpad or mouse wheel)

I am trying to get the browser's zoom level with JS. Not the built in zoom (by using command and + or -) but the zoom when the user resizes the window with touchpad or mouse wheel. I tried for ...
CyberJ's user avatar
  • 1,052
0 votes
1 answer
62 views

Refused to create a worker from 'blob:<URL>' because it violates the following Content Security Policy directive: "child-src 'self' *.website.com

I am trying to build chrome extension (MV3) - there I am loading some libraries which uses workers - I added the worker (.js and .wasm) in the resource folder so I can load them "locally" ...
Suisse's user avatar
  • 3,505
0 votes
0 answers
22 views

Chrome extension does not work to inject a button into pages? [duplicate]

I'm developing the minimum code to inject a button on any page but it keeps reporting the error "Uncaught TypeError: chrome.action.triggerAction is not a function". manifest.json { "...
adricaceres's user avatar
0 votes
0 answers
28 views

How to set up chrome.storage.managed

Firefox MDN has clear instructions about how to use browser.storage.managed (storage.managed, Managed storage manifests). Create a JSON named the same as the extension ID Place the JSON according to ...
erosman's user avatar
  • 7,219
0 votes
0 answers
29 views

use chrome extension to open tab *virtually*

I am creating an automated tool to manage tabs, a Chrome Extension. I need to make sure a tab is fully loaded and data saved (for example a chat gpt question where the answer is still loading etc). Is ...
Alexander Mills's user avatar
0 votes
0 answers
8 views

Chrome extension VoIP app audiostream not playing continuously when user switch tab

In VoIP app once I open extension and call is ongoing while switching tab or clicking extension again audio get stopped I want it to be played continuously untill call is not ended I tried to store ...
anony's user avatar
  • 1
1 vote
0 answers
18 views

Show Error Rd is not defined when use Function in chrome.scripting.executeScript [duplicate]

I'm developing a chrome extension using react and vitejs. My manifest.json file: { "manifest_version": 3, "name": "DEV Articles", "description": "DEV&...
Mohammad Miras's user avatar
0 votes
0 answers
32 views

Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist. While building a chrome extension [duplicate]

The goal of this Chrome extension is to enable users to capture screenshots of a selected area within the browser just like this extension (https://chrome.google.com/webstore/detail/...
Yoo's user avatar
  • 1
0 votes
0 answers
26 views

chrome addon - automatically refresh pages [duplicate]

I need some advice on a chrome add-on. The goal of the addon is to have the page automatically refresh every 60 seconds. Once or twice the page does indeed update, but after that the addon stops ...
Dejv Dejvovic's user avatar
0 votes
0 answers
19 views

How to redirect a user to chrome extension tabs page from NodeJS?

I'm working on an extension (MV3) and I'm using Passport.JS to authenticate users with Google. I'm using JWT which I need to send to the frontend. When I try to use the following code to redirect the ...
Ankit Sharma's user avatar
0 votes
0 answers
26 views

Google Apps Script deployment does not return same value as editor

Problem: When i run the Google Apps Script in the editor, it works fine and returns the selected text from Google Docs. When I test the deployment, or use the Retrieve Text From Google Docs button on ...
S. Jilani's user avatar
0 votes
0 answers
17 views

A Chrome extension Error: Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist

This is a chrome Extension project that aims to produce summary and major points of a selected text on the web. I'm new to chrome extension development and trying to run this code. Any suggestion and ...
Reenu's user avatar
  • 1
0 votes
1 answer
18 views

Chrome Extension Failed to load resource: net::ERR_FILE_NOT_FOUND

I'm developing an extension. I want to import a function in options.js from commonActions.js but in my console I can see the error Failed to load resource: net::ERR_FILE_NOT_FOUND manifest.json { &...
SilverCyber's user avatar
0 votes
0 answers
15 views

Trouble Sending Messages from Content Script to Popup in Chrome Extension

I'm working on a Chrome extension using React, TypeScript, and Webpack. In my content script (contentScript.tsx), I'm extracting data from a webpage upon the DOM load and attempting to send this data ...
Nasim_Reja's user avatar
0 votes
0 answers
27 views

Why can't my code detect cms when I add a letter to a string?

I'm trying to make a tool that looks up what CMS a website is using. And it works kind of. When I use this: const detectCMS = (): string => { if (document.documentElement.innerHTML.includes('<...
Jonathan's user avatar
0 votes
0 answers
28 views

A chrome extension error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'action')

This is a chrome Extension project that aims to produce summary and major points of a selected text on the web. I'm new to chrome extension development and trying to run this code. Any suggestion and ...
Reenu's user avatar
  • 1
0 votes
2 answers
56 views

Await vs immediately-invoked async function expression [duplicate]

Can someone help me understand the difference between the two blocks of code below? When I call await in the listener, the caller receives undefined. chrome.runtime.onMessage.addListener(async (...
Pradeep Vairamani's user avatar
0 votes
0 answers
31 views

Pass information from chrome extension popup.js to iframe so value is rendered on in field of page in iframe onload

I have data that I have been able to pick from the page that the popup was called on. I want to pass that data into the iframe which is showing the http://localhost:3000/. I want the values that were ...
Kobby's user avatar
  • 1
1 vote
0 answers
24 views

Chrome extension reload secondary tab on event

I'm trying to reload a tab on user interaction, but can't figure out a solution. I know chrome.tabs.reload(); is the function to trigger a reload and that document.getElementById("...")....
Share's user avatar
  • 21
0 votes
0 answers
17 views

change url text in chrome address bar by chrome extension without actual navigating to it

When user browses a webpage like www.google.com, is it possbile to change text in address bar to something like [trusted]https://www.google.com by chrome extension? Of course we wont browse to new ...
byq's user avatar
  • 1
0 votes
0 answers
55 views

How to package Chrome extension (generate .CRX file) in the command line

How do I generate a .CRX file in the command line? I tried chrome --pack-extension=PATH_TO_MY_UNPACKED_EXTENSION, but it doesn't do anything. No output file, no messages, nothing. My extension has a ...
tigerros's user avatar
-3 votes
0 answers
79 views

When I add a content script to my chrome extension in CRXJS it throws an error on build

Setup: ViteJS CRXJS VueJS VScode After adding a content script in the manifest.json and building it I get this error: [crx:web-accessible-resources] TypeError: OutputBundle["manifest.json"]...
user22952064's user avatar
1 vote
0 answers
19 views

Chrome Extension JS detect http status code and refresh

I'm trying to create a chrome extension that detects the http status code & refreshes each time the condition is met. document.addEventListener('DOMContentLoaded', function() { ... }) will return ...
Share's user avatar
  • 21
-2 votes
0 answers
22 views

I am creating an extension that blocks words. It blocks words fine, but it makes my text cursor jump backwards unexpectedly [closed]

here are the files I rechecked the code and saw nothing that could interfere with my text cursor. I wanted it to just block words. and experimented with it being able to block urls but kinda gave up ...
audaudin's user avatar
0 votes
1 answer
27 views

How to close the popup of a Chrome extension from a service worker?

I'm trying to close the popup from a service worker using chrome.extension.getViews, but I get TypeError: chrome.extension.getViews is not a function. I learned from this question that the API has ...
syydi's user avatar
  • 161
-1 votes
0 answers
24 views

PHP Codeigniter Locator extension for google chrome [closed]

I would like to know is their any extension for google chrome just like JsLocator that can be use with codeigniter to redirect to particular component? Because when working on project with team, its ...
Hamza Mushtaq's user avatar
0 votes
0 answers
35 views

Chrome Extension for content-padding

I recently got a really really nice sidebar for chrome but sadly when openened it spans over the website content, so I quickly learned some browser extensions basics and even got it to work on most ...
crazywolf's user avatar
0 votes
0 answers
21 views

Session in Chrome Extension Content Script

I am working on a Chrome Extension, which manipulates the active tab DOM based on results from an external API. The API in question can be accessed using a system key, but I am hesitant in storing the ...
Tuomas Tikka's user avatar
0 votes
0 answers
21 views

Below Function in my Chrome Extension returns undefined instead of true/false [duplicate]

I've created below function to check duplicate object in my chrome extension project. But It is returning undefined. True or False is expected. Can you please modify it into the correct code for my ...
SilverCyber's user avatar
0 votes
0 answers
30 views

How do I get my browser extension to redirect the website I want it to? [duplicate]

I'm coding my own browser extension and I would like to redirect https://www.roblox.com/ to https://www.google.com/. I have all of the code set up I just need this small problem fixed. My manifest....
Ryan Pflum's user avatar
0 votes
0 answers
72 views

Proper way to communicate chrome.sidePanel.open() success from service worker [duplicate]

Note: The new preferred approach with manifest V3 is to use Promises or the async/await for asynchronous operations. Please do not link "already answered" posts that use synchronous response ...
CyberJ's user avatar
  • 1,052

1
2 3 4 5
590