Why does .val() return numbers as text instead of float, using apostrophes inside the array? Can I simply convert the array to float/numbers? or is there another simple way to extract all values of selected options and put inside an array? I tried parseFloat but it doesn’t seem to work with array as it …
Tag: google-chrome-extension
Chrome Extension: Confirm window is not appearing on currently using tab? it just appear on one tab (popup.html)
I am developing chrome extension for e-gym that generates confirm window for using chrome browser after every one hour. I have developed chrome extension but the confirm window is only appearing on popup.html. I want to turn on my extension let it generate window.confirm on any tab that I am using currently a…
chrome.runtime.getURL() unable to inject javascript file into my webpage for manifest V3
Background: I’m making a chrome extension, and I must migrate it to MV3. I modified my manifest.json file to include web resources, but when I go to inject my resource from my content script using chrome.runtime.getURL, it says it can’t find my file. Specifically… GET: Chrome-extension:://&#…
How to open Chrome Extension on new window instead of the default popup?
I’m building a Chrome Extension and I need users to be able to “detach” the extension from the default top-right location of the popup when they so desire. Note that I still want the extension to open normally when the icon is clicked. But I need that when a specific button is clicked, for t…
Why is my chrome Context Menu button not working when clicked?
New to extensions development here. I’m trying to build a simple extension where if the user highlights some text on the webpage and clicks on the defined context menu option then an alert message message is displayed. However, when the context menu option is clicked nothing happens. Not sure where I…
Javascript – press enter key after updating input value
I am trying to press the enter key programmatically using Javascript, but only after value of an input is updated, also using Javascript. It is updating the value successfully but the enter key press is not taking place. Please note that there are multiple inputs and the following code is inside a loop for al…
How can I use JQuery in my Google Chrome extension with Manifest 3?
I am trying to figure out how I can use JQuery in my background.js for Google Chrome extension development for Manifest 3. All of the other answers I have found are for Manifest 2. Thank you in advance for the help. Answer After some more research and time spent trying to figure out how to make this work I fi…
Using a variable in place of an array
I have a number of arrays I’m using for my first Chrome extension. I want to use a different array for my extension depending on what a value is in a specific variable (locationVal), which is a number between 1-4. Here is the function that decides that: The firstList, secondList, etc. are my arrays, whi…
Undefined Json response from django backend to chrome extension alert
Hi i am trying to return a json file to the chrome extention to show it to the user, the query go to server without a problem, fetched url is also working and does return the json file when i try it directly, but the chrome extention shows “undefined” message in the alert instead of the json file.…
Can I build a Chrome extension that updates an excel Office Online document
I am trying to figure out the best way to automate the gathering and exporting of information from a site I am visiting regularly to a excel sheet. I need to be able to both scrape information from the site as well as input some manually, which is why I thought a chrome extension would be a good idea. I