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.

0
votes
1answer
9 views

Importing Bootstrap/Bootstrap-Vue into Scoped CSS

I am developing a chrome extension and am using Bootstrap-Vue on my Vue files. Currently, I imported bootstrap/bootstrap-vue into my js file, but this causes the styling to take place on a global ...
0
votes
0answers
15 views

Problem stopping CORB from blocking requests

I have a Chrome extension that scrapes some values from a webpage based on some query selectors that are provided via an API call. Relevant portion of manifest.json: "background": { "scripts": [...
0
votes
0answers
32 views

Javascript Array empties after redefining variable to contain new full array then setting a specific index to another value

I have a variable currentQL which is set to an empty array. This array is then set to contain 6 string values, however, when I then do currentQL[0] the array then only contains that one value. ...
0
votes
0answers
29 views

Chrome's content script not allowed to add EventListeners by default?

Just to make it clear I read multiple similar questions 1 2 3 4 5 etc none of them are relevant to mine. As I understood, WebAPI content scripts even if run in isolated environment still can ...
0
votes
0answers
18 views

join HTML segments from different origins and load correctly in a browser

I want to join HTML segments from different origins and then load the final one correctly in a browser. For example, one HTML segment excerpted from www.1_example.com/1 might contain <img src='/...
0
votes
0answers
13 views

Chrome extensions do not respect browser_specific_settings

The W3C Browser Extensions Community Groups has been working for a while on compatibility between browser extensions on different platforms (Chrome/Firefox/Edge/Opera/Etc.). They have a list of keys ...
1
vote
0answers
13 views

How to get extension state (enabled/disabled) synchronously?

From content.js I need to detect the extension state (enabled/disabled). Currently I'm using chrome.storage.sync.set in background.js to set the state, and chrome.storage.sync.get in content.js to get ...
0
votes
0answers
12 views

Is chrome.topSites cached

I use chrome.topSites.get in a custom startpage extension to display the user's most visited websites. However I've noticed that this is cached. If I create a new profile, open the custom startpage, ...
0
votes
0answers
27 views

How to POST data from chrome.tabs.executeScript to PHP?

I am trying to fetch the result from a chrome.tabs.executeScript type file & POST it to a PHP file. Here is my approach: **Popup.js Source Code** // Here I have initiated the tab listener to ...
0
votes
1answer
20 views

How to send data between background.js and popup.js if popup is closed?

I need to send data from popup.js to background.js and after that to send from background.js to popup.js. But if popup.html closed it can't recive data from background.js because port doesn't exist. ...
1
vote
1answer
36 views

Cannot read property 'innerHTML' of null on Wikipedia pages

I am not a JS developper so forgive any horrible code I might have written Hi all, I am working on this chrome extension project, and I am running into a really weird error. The extension is meant ...
0
votes
0answers
24 views

How to disable a specific extension programmatically?

How can I disable a specific extension programmatically from my own extension?
0
votes
1answer
18 views

How to change the pop html on button click

I am trying to find a way to change the pop up HTML on a chrome extension to another one when you click a button. I have tried to make a onclick function href but nothing works. I am new to both HTML ...
0
votes
0answers
25 views

How to share auth between my hosted website and firebase?

I am developing a website and a chrome extension. The website uses firebase authentication such as Facebook, Google, and Email. I making a chrome extension and need to share auth with it, meaning once ...
1
vote
1answer
33 views

how to close a tab in opera based on its url

I want to stop websites displaying ads, so I am looking for a way to create a script (opera extension) that can read the url info of any new created tap and close it automatically if contains a ...
0
votes
0answers
23 views

How to add the data from Google Chrome Extension's Console.log to my current browser's page console?

This is regarding a Google Chrome Extension which I am trying to build. My aim here is to Fetch the data using AJAX and get the data in the console tab. So, I am able to get the data using AJAX and ...
0
votes
0answers
26 views

Can I add javascript to chrome newtab instead of redirecting it?

I know that we can override in-built webpages via "chrome_url_overrides": { "newtab" : "newtub.html" }, and then modify newtub.html to whatever page I want. My question is if I have a ...
0
votes
0answers
16 views

Read Incoming Facebook Message Text from GET Request

I need to listen for incoming Facebook messages and read the message content for an extension I am working on. I feel a bit stupid being unable to work out the correct GET request to do so. When a ...
0
votes
0answers
18 views

How costly is it to call sendMessage() from the background script to content script once per second?

So I'm trying to work on a Chrome extension that involves a timer countdown from five minutes when the user changes the URL: I'm thinking of counting down from the background script because the timer ...
0
votes
1answer
60 views

How to highlight only certain words of an HTML element?

I'm creating a Chrome Extension to highlight the user's name on the page. I am able to detect the name on the page, but I am having difficulty in actually highlighting just the user's name instead of ...
0
votes
0answers
19 views

can't specify a bypass list for a localhost address

I'm using a python module called selenium which controls Chrome remotely through localhost IP ws://127.0.0.1:59366 and when i apply for proxy extension selenium is no longer able to connect to Chrome ...
0
votes
0answers
19 views

Chrome extension: How to get original order of form data?

How to get original sorting of form data in a chrome extension? I'm writing an extension that need the original order of filled form in POST requests with application/x-www-form-urlencoded. Chrome ...
0
votes
0answers
20 views

CSS: How to define style to make element visible under Twitter user-actions dropdown

I'm trying to add a custom menu item to Twitter user actions menu item (e.g. https://twitter.com/jack, a new li under div.UserActions > div.dropdown-menu > ul) I'm failing to make it visible: ...
0
votes
0answers
20 views

Show Popover on text selection

I'm Trying to develop an extension which shows some information in a popover on text selection. EXACTLY similar like How Google Dictionary Chrome Extension is. How Do i add popover dynamically on ...
0
votes
0answers
29 views

How do I load a page in a Chrome Extension?

This is the error I get Refused to execute inline event handler because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem: chrome-extension-resource:"....
-5
votes
0answers
28 views

How do I replace a certain image on a website with another image only for me to see using chrome extension? [on hold]

https://animefever.tv/ <- I want to change the thumbnail on this site with thumbnails based on their "name" and perhaps even make the script find the image on net itself
0
votes
0answers
11 views

Please interpret the error code.OpeQA/Selenium.WebDriverException:unknown error:Element

OpeQA/Selenium.WebDriverException:unknown error:Element ... is not clickable at point (68.41).Other element would receive the click: .. We have several errors while the program is running, and I ...
0
votes
0answers
38 views

change icon in chrome extension based on site URL

I'm attempting to change the icon of a chrome extension based on the page url the user currently is on. The other answers i've found work however break when I run multiple tabs open. Currently I'm ...
0
votes
0answers
9 views

Prevent multiple auth flow windows with browser.identity.launchWebAuthFlow

I'm using browser.identity.launchWebAuthFlow to login the user in my extension. The problem is if the user clicks on login again it will open another login window flow. Is there an elegant way to ...
0
votes
0answers
28 views

How would I extract data from one website and put it into mine?

I want to make a Chrome Extension that will show me my grades in school. They put these grades on a website and they are always in a chart. I have selector gadget, but I'm not really sure how I can ...
0
votes
0answers
14 views

Usage of Fullstory lib with local files

I'm trying to use Fullstory lib within my Google Chrome extension. It is working without any errors, but when i trying to see a recording of session, i just see a blank screen with only cursor on it. ...
0
votes
1answer
33 views

Chrome Extension: TypeError: Cannot set property 'innerHTML' of null

I'm not sure how the DOM loads for chrome extensions.. I put my script (background.js) under all the html elements but the "cannot set property of null" error still gets thrown. Here's the manifest....
0
votes
0answers
24 views

How to extract text inside a Iframe using a Chrome Extension [duplicate]

My problem: I work in a microtasks platform, they publish the tasks in a list, in order to check the list for new microtasks I have installed a chrome extension called "Auto Refresh Plus" which ...
-1
votes
0answers
30 views

How to handle application/json utf-8 response in Chrome Extension [duplicate]

Continued from here. My Chrome Extension is receiving an application/json response from an API call. Here's the background script making the call: chrome.runtime.onMessage.addListener( function(...
0
votes
0answers
30 views

How to block a URL to load and then present a HTML?

I want to intercept some user requests, cancel it and then present a hand made HTML. First I tried to call window.stop() in the beginning of content.js, but after checking the Network tab of the ...
-2
votes
1answer
37 views

how to press button within other urls (chrome extension) [on hold]

Need the best way to visit other urls and press button there via chrome extension I'm building a chrome extension which downloads materials from the univeristy website (moodle). I want to download ...
0
votes
0answers
14 views

How to use chrome browser proxy for API calls in background script of a chrome extension?

In my chrome extension I'm calling an API from the background script using ajax. And In my chrome browser I have another extension called SwitchyOmega which I use to set proxy for the browser. Is ...
0
votes
0answers
24 views

How detecte a new span and play sound [duplicate]

actually i create an extension at work to play a sound when a new ticket appear. But my knowledge to js and html is limited, but if you can help me. the new line who appear is like this : Can I ...
1
vote
0answers
32 views

Cannot send post data via chrome extension

I have an API endpoint that exists, and I know it works correctly (I test frequently, successfully using PostMan). The problem is that when I am posting to it via my chrome extension, I am able to ...
0
votes
0answers
16 views

How to fix error in chrome extension code js

I am building my first chrome extension, but it doesn't work. Google chrome can read the manifest and icon logo, but it doesn't work after that. It is supposed to have a click function (javascript) to ...
0
votes
0answers
18 views

Open Rdp with Angular

I want to open Rdp connection to some machine, Lets say that the parameters for the connection comes from a input field. I'm understand that this is possible via chrome extension for Angular access ...
0
votes
0answers
16 views

Access to the dev tools' virtual filesystem or storage in a Chrome extension

I am looking for a way to access (enumerate, get and execute) the Chrome dev tools snippets from a Chrome (dev tools) extension. It seems there's no documented, public API to the snippet management ...
-1
votes
0answers
29 views

How to check if a page don't support https? Or if a URL is not valid? JAVASCRIPT

I need to know the conditional statement of whether a page supports https or not. For example , when I try to force https on www.stealmylogin.com , it leads to an error page. I see 3 possible way to ...
0
votes
0answers
38 views

Modifly POST body request chrome extension

I need to change the content of the POST request from google chrome using the extension. I have achieved that I can read these messages, but unfortunately I have not learned to change them. I found a ...
0
votes
1answer
28 views

How do change the pixels of a canvas on a online website so that other people can see the changes

Currently im programming a chrome extension which is a drawing bot for the website skribbl.io. I already made one in java, however i figured that there are ways to draw faster and have the drawing ...
1
vote
1answer
17 views

Need to find the id of an element then use it as a variable to run some html

I'm trying to write a chrome extension that will fill out a series of dropdowns. The problem is the ID changes each time I reload the page, but I need this ID to execute some HTML that uses the id as ...
0
votes
0answers
14 views

How to add custom buttons in gmail compose window

I am trying to add custom buttons in Gmail just below the send button in compose window , but i am unable to get it properly rendered I tried using InboxSDK but it will only allow an icon based ...
1
vote
0answers
37 views
+50

How to audit a chrome extension's open-source code?

I am concerned that a chrome extension is providing users with different code than that in its open-source repo. The extension is MetaMask, a cryptocurrency wallet that was recently found to be ...
0
votes
1answer
16 views

How do I sent data from options.js to content.js using storage?

I'm a JavaScript beginner and for my first project I thought I'd write a useful chrome extension, however, I'm stuck on how to send data from my chrome extensions options page to the javascript that's ...
0
votes
0answers
22 views

How to run git commands from chrome extension

I am working on an extension which needs to clone a repository on some action. Is there a way I can achieve that? I see google provide Native Messaging but I am not sure if I can clone repositories ...

http://mssss.yulina-kosm.ru