711 questions
0
votes
0
answers
60
views
My OAuth provider only allows me to specify one trusted redirect domain, but I need multiple domains
I am implementing a browser extension that needs to do OAuth with a provider (in fact, it is the StackExchange API).
Currently the workflow is like the following:
Extension calls identity....
0
votes
0
answers
76
views
Cross-Browser Extension OAuth2 with Google Calendar API: Avoiding client_secret and redirect_uri_mismatch while keeping token refresh possible?
Problem
I'm building a browser extension that needs to authenticate with Google Calendar API across Chrome, Brave, Edge, and Firefox. I want persistent authentication with refresh tokens, but I'm ...
1
vote
0
answers
62
views
Dropdown and icon misalignment in browser extension on scroll and iframe fields
I'm building a password manager browser extension. It displays an icon next to input fields (including inside iframes), and when clicked, it shows a dropdown with autofill options. The problem is that ...
3
votes
1
answer
122
views
Is it possible to modify the body of an outgoing HTTP request in a Firefox add-on?
I am making a Firefox add-on and I need it to have the ability to modify the bodies of certain outgoing HTTP requests. The instructions for modifying headers are readily available on Mozilla's own ...
0
votes
0
answers
90
views
value setter for a custom select element with lazy loading
Edit ############
I had omitted the fact that this is an extension code, which seems a crucial information.
I have realized the problem is probably not caused by race of any of my functions but rather:...
0
votes
0
answers
45
views
Browser extension fails to reliably update favicon on SPA pages despite correct <link rel="icon"> in DOM
I’m developing a browser extension that changes the favicon on a Single Page Application (SPA).. specifically Roblox.com. The extension injects code to replace the existing favicon with a custom SVG ...
1
vote
0
answers
75
views
Undefined browser extension response
I have communication between background and content scripts
Basically it looks like:
// background script fragment
const url = 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf'...
0
votes
1
answer
32
views
Chrome Extension popup can't read updated chrome.storage.local data from content script
I'm developing a Chrome Extension that analyzes the current tab's URL using a content script (contentKeywords.js) and saves the number of suspicious keywords found to chrome.storage.local under ...
0
votes
0
answers
36
views
Is there a better way to make my browser action show a popup when left clicked but do something else when shift-clicked?
I'm writing my first firefox browser extension. I want to have a typical pop-up appear when my browser action is clicked, but I also want users to be able to Shift+click or Ctrl+click on the browser ...
3
votes
1
answer
385
views
Custom Chrome Extension for internal distribution without Chrome Web Store
I am making a Chrome extension for internal entreprise use, outside of Chrome Web Store. Users might be on Windows, Mac, Linux.
What are the current ways to achieve this non-store distribution, ...
0
votes
0
answers
30
views
chrome.declarativeContent.ShowAction does not disable popup action for unmatched pages
The declarativeContent API in chrome extension is expected to disable the extension icon in toolbar if the page condition is not met, but I'm not able to get this working.
I picked the exact example ...
0
votes
0
answers
42
views
Problem when adding new response header with Chrome extension
I'm trying to develop a Chrome extension to add a new response header to responses from a specific web site. My manifest.json file is as follows:
{
"name": "MVX",
"version&...
0
votes
0
answers
52
views
Inconsistent PCM audio data captured from the same video using AudioWorkletNode
I'm trying to capture audio data from a YouTube video using the Web Audio API. My goal is to save the raw audio in PCM format while the video is playing. However, I'm noticing inconsistencies in the ...
2
votes
2
answers
148
views
Leftover bytes detected while parsing authenticator data
I'm writing a password manager browser extension that also supports passkeys. The extension injects a script to websites that intercepts navigator.credentials.create requests which then opens a popup ...
0
votes
0
answers
50
views
Chrome Extension is failing to sendMessasge() from chrome.storage.onChange handler
I am developing a Chrome V3 extension with an options page that uses chrome.storage to persist user prefs.
On the background script js I have a listener that handles chrome.storage updates by firing ...
1
vote
0
answers
36
views
Blazor.BrowserExtension: Issues Adding Razor Components to Gmail DOM in Chrome Extension
I am developing a Chrome extension using the Blazor.BrowserExtension package. The goal is to manipulate Gmail’s DOM by injecting Razor components and invoking C# methods from custom.js (content script)...
0
votes
1
answer
59
views
Chrome.scripting does nothing and ends the script
Im currently doing the "Inject scripts into the active tab" part of Getting Started, in the Chrome Extension tutorial, where I've been spending a little time troubleshooting why the page ...
1
vote
0
answers
29
views
Chrome extension: Run a function for specific website context? [duplicate]
Theres a specific website that has certain function that I'd like my Chrome extension to run whenever the page is active. Lets call this website website1 (Main context)
Website1 has a function called ...
0
votes
0
answers
114
views
Why am I getting this "Cannot use import statement outside a module" error in my browser extension?
I'm creating a very simple browser extension. My code is below
manifest.json
{
"manifest_version": 3,
"name": "RedditReader",
"version": "1.0&...
0
votes
0
answers
101
views
Block script requests within an iFrame using Manifestv3
I’m currently migrating a browser extension from Manifest v2 to Manifest v3. Among other things, the extension creates an iFrame of the currently open page, but it blocks a specific script within the ...
0
votes
1
answer
66
views
Why is the select options showing up behind my div?
CSUI (content script) showing select options behind div
The select options shows up behind the card that select field. The styles are working fine but any time I open like a dropdown thats supposed to ...
1
vote
1
answer
162
views
Can't Add Google Analytics to Chrome extension without api_secret
Can someone please help me add gtag to Chrome extension? My chrome extension includes a newtab.html page that overrides new tab. I found a tutorial here: https://github.com/GoogleChrome/chrome-...
2
votes
2
answers
115
views
Accessing history in chromium browsers through extensions API
I'm currently developing an extension that will provide a better alternative to standard Edge history page. For accessing the history I used chrome.history, which, as I previously thought, solved my ...
-2
votes
1
answer
55
views
Browser extensions: How do developers test/live code their JS for a third party website/SPA? [closed]
My question is about browser extensions written with javascript.
Tutorials for writing a browser extension always seem to use some minimal boilerplate HTML/CSS/JS as the test site (index.html = "...
0
votes
1
answer
312
views
How to set document.hidden to always return false?
I have a very specific need for some websites to always "believe" that their tab is active (as you'll see from the code below, it's mostly Google Maps and iCloud), equivalent to Chrome ...
0
votes
0
answers
139
views
How can I target Brave or Chrome’s internal pages, e.g. chrome://settings or chrome://history, to in my manifest.json?
I have been writing browser extensions for personal use for over 14 years now, however, the changes made by browser vendors over the last 14 years have made it increasingly difficult to restyle the ...
0
votes
1
answer
300
views
VS webview2 Add Browser Extension
I am Developing a Custom Browser For Using VS 2022 WinForm With WebView2
I need To Add Unpacked Browser Extension.
Coded
Error I am Getting
System.Runtime.InteropServices.COMException
HResult=...
0
votes
0
answers
18
views
How to access and edit brave://resources/brave/css/reset.css file on Mac OS X? [duplicate]
I have been writing extensions for personal use for quite a while now, and with the following feature of the manifest.josn file, it becomes spectacularly easy to target the CSS selectors of whichever ...
0
votes
0
answers
53
views
Html not loaded even after window.addEventListener('load', do_something) is invoked
I'm working on a browser extension that scrapes data from a webpage. I've added a method to scrape data, which is invoked via a load listener:
window.addEventListener('load', scrapeSomething)
However, ...
2
votes
0
answers
81
views
Detecting if browser extension is running as popup or side panel
I'm building a browser extension that can be opened as both a popup and a side panel (chrome-based browsers) / sidebar (firefox). Is there a way in JavaScript to detect which option the user is ...
0
votes
0
answers
54
views
Browser Extension doesn't change innerHTML
The script seems to run correctly but it doesn't edit anything. If I put the script in the console it works, but by clicking the extension it returns an error that the innerHTML for the given element ...
-1
votes
1
answer
54
views
How to identify a Stack Exchange website before page load inside content script?
I'm writing a personal Chrome extension that modifies various things (i.e. styles) on various websites. That includes Stack Exchange. My extension is enabled on all websites so I have to differentiate ...
0
votes
1
answer
337
views
How can I pass messages in a Chrome Extension from content.js to background.js to popup.js?
I want to write a Chrome extension that essentially has to pass an information (1) from the content.js script to background.js, where it sends the information to an external Node.js server, and then (...
1
vote
1
answer
318
views
TypeError: a.default.detectStore(...) is undefined (Honey Browser Extension Issue)
I just started working on a Next.js App. And now I am encountering this error whenever I call the page (hosted locally with npm run dev:
TypeError: a.default.detectStore(...) is undefined
u ...
0
votes
0
answers
26
views
SyntaxError: Unexpected end of input when parsing API data [duplicate]
I am trying to develop an browser extension, after calling my weather API when I try to parse the JSON data, it raise error in console like:
SyntaxError: Unexpected end of input (at script.js:36:30) ...
2
votes
0
answers
188
views
Is there any way to get setPointerCapture to work with artificial pointer events?
I'm working on a browser extension that creates artificial pointer events and sends them into the page using dispatchEvent like so:
function myCreatePointerEvent(pointerId, isPrimary, screenX, screenY,...
5
votes
4
answers
2k
views
Safari Web Extension background script becomes unresponsive after 30 seconds
Overview
I'm experiencing a Safari Web Extension issue where the non-persistent background script seems to crash after 30 seconds even when the content script is messaging it.
Here is a minimal-...
0
votes
0
answers
224
views
How to access files on a shared storage in the same network using File System Access API?
I have a requirement to develop a browser based web application. The goal of the application is to manage files on a shared file system, from the browser, as if it was my local file system. If ...
1
vote
0
answers
237
views
Chrome extension: How to modify the cookie header in response (& request) headers in a network call in manifest v3?
I want to add tab ID as prefix in the Cookie response header of a web request before it reaches the web application and similarly want to remove that prefix from the Cookie request header before the ...
0
votes
0
answers
375
views
Web Serial API on sidepanel \ No port selected by the user (selection panel does not appear)
Making a browser extension.
From the main window, the scripts work as they should, but when I open them in the side panel, the serial port selection window does not appear. As a consequence, an error ...
0
votes
1
answer
52
views
Browser extension shortcut failing
I have a cross browser, manifest v3, extension that can be toggled using cmd+period as a keyboard shortcut. This shortcut works intermittenlty, so I'm wondering if there any reserved command that uses ...
1
vote
0
answers
180
views
Chrome extension built using react, chrome.runtime.sendMessage's response is undefined and Receiving end does not exist
Whenever i load the extension for the first time(I'm doing it in dev mode), or reload the extension, the I get response as undefined(Error retrieving HTML content: undefined) in background.js.
And ...
0
votes
0
answers
104
views
Add an event listener for when an external app is opened in the page where my content script is being ran
I am creating a browser extension, and I want to open a React dialog/modal to the user when joining a Zoom meeting.
Ideally I want to pause the automatic opening of the Zoom application while the user ...
1
vote
0
answers
214
views
Chrome Extension `chrome.runtime.sendMessage(...)` connection errors
I am developing a Chrome browser extension and I have a background script that reports the status of long-running tasks to the side panel. It seems to working fine, but when I close the side panel, a ...
0
votes
0
answers
323
views
How to programatically fast forward video on a website
I'm considering writting a browser plugin (firefox or chrome), that will trigger a fast forward or skip on an embedded video player on a website. Its not youtube, but a custom video player component. ...
1
vote
0
answers
69
views
Send list of opened tabs from chrome extension to electron application
I am currently coding an electron desktop application for which I need to get information on the opened tabs in the user's browser. Therefore, I need to create a chrome extension (correct me if I'm ...
2
votes
1
answer
917
views
How to request host_permissions at install time with Manifest V3?
I'm working on a simple cross-browser extension that redirects requests from one domain to another. Let's say from example.com to google.com. I've decided to use Manifest V3 to support Chrome. This ...
0
votes
0
answers
215
views
I am building an extension using manifest v3 with the config below, I am unable to view/open my popup when dev tools is open
{
"manifest_version": 3,
"name": "chrome-extension-svelte-typescript-boilerplate",
"description": "Boilerplate for Chrome Extension Svelte Typescript ...
0
votes
1
answer
840
views
How to block/remove Youtube Share, Download buttons in a content script like how uBlock does it? [closed]
Removing said buttons with code below works however it doesn't update the UI in a way that displays the other buttons in the sub-menu. The other buttons remain hidden in the sub-menu, while the ones ...
0
votes
0
answers
63
views
How to Externally Debug a Memory Issue on a Minified Website (AI Sensei)
I'm new to debugging memory issues with Chrome Dev Tools, so I'm kind of lost on this one, specially because I don't have access to the code and the website has been minified apparently, so it's ...