Questions tagged [browser-extension]

Browser extensions are additions to a browser that add to or improve some part of the browser's functionality.

Browser extensions are additions to a browser that add to or improve some part of the browser's functionality.

Consider including browser-specific tags to your question, such as:

680 questions
8
votes
1 answer

Interprocess communication between browser extension and native application

How can an interprocess communication be estabilished between a browser extension and a native application? Is there any cross-platform (Linux and Mac OS X) and cross-browser solution (Firefox, Chrome, Safari)? The only idea that comes to my mind is…
8
votes
3 answers

Chrome extension: Execute background page only once when chrome starts

I am playing with chrome extensions, my manifest loads a background page with: ... "background": { "scripts": ["background_page.js"], "persistent": false }, ... The .js code looks like this: var once = false; window.addEventListener("load",…
7
votes
3 answers

Does IE have a simple, javascript-driven means of extension development like Chrome, FF, Safari and Opera do?

Before giving up on my extensive googling, I thought I'd make a last ditch effort and ask here... In Chrome, Safari, Firefox and Opera - it's very easy to write browser extensions using javascript (and some native javascript functions to each…
7
votes
1 answer

Browser extension is not working with code-splitting

I have cross-browser extension (currently running it on Chrome and Firefox) build with typescript and compiled with webpack. I wanted to use code-splitting to reduce the size of the bundle. However when I enable code-splitting in the webpack config,…
7
votes
2 answers

Chrome Extension: Run Content Script before any Embedded Scripts run on Page

I'm trying to change some behavior of the YouTube player, by changing some variables inside of the player_api script that is embedded into the html watch page of videos. Problem is, whatever i try, the embedded script of the player always runs…
7
votes
1 answer

is there any @types for interoperable browser extension object?

I'm creating a browser extension that would be compatible in Edge, Chrome, and Firefox using Typescript. I have found an article that discusses interopable browser extension that has a sample of this code: window.browser = (function () { return…
rpmansion
  • 1,964
  • 1
  • 9
  • 26
7
votes
1 answer

How to detect that Google Instant page has loaded completely?

I'm working on a browser extension (think SEOQuake) - I need to display some data about the search results that are shown. Issue: If anything is added to the Google Instant results page while it's still in the process of being loaded, it'll…
dsp_099
  • 5,801
  • 17
  • 72
  • 128
6
votes
0 answers

Intercept event before it fires when addEventListener doesn't work

I've been maintaining a small project written in React. It's a browser extension which adds Slack-like emoji support to Facebook Messenger. Since Facebook is changing up thing once in a while, I need to make new changes to the browser extension, so…
MortenMoulder
  • 6,138
  • 11
  • 60
  • 116
6
votes
1 answer

Safari extension iOS - messaging from app to extension

With iOS 15, Apple had made it possible to create Safari extension for iOS as well. I'm currently in the process of bringing an existing macOS Safari extension to iOS. My problem is that there doesn't seem to be the option to send a message from the…
Til Jordan
  • 79
  • 2
6
votes
2 answers

Is there any way to pin a Chrome extension automatically when installing?

I am developing a chrome extension. Recently I saw that when a chrome extension installed it's not showing in the toolbar. There is an extension toolbar icon. When I clicked that icon it shows all the installed extension then I need to pin those…
6
votes
2 answers

Source maps (for browser extension) don't work for me in Chrome 75, Edge 77

I created an example browser extension written in .html and typescript that is working fine in Chrome, Firefox and Edge (canary). Typescript compiler generated .js and .js.map files from the .ts files. I want to debug the source code where I can…
6
votes
2 answers

How do Gmail plugins such as Rapportive work?

I know Gmail has contextual and side-bar gadgets, but how do browser extensions such as Rapportive work? Are they injecting their buttons / displays into the browser page? If so, wouldn't the browser extension break if Google decided to change the…
please delete me
6
votes
1 answer

Get the exact font of a rendered text in the browser, maybe with a browser extension

I know you can get the font-family value by window.getComputedStyle() but that's not always exactly the font that is used by a browser to render. For example, if the given text contains the (multi-lingual) text the font family does not carry, the…
beatak
  • 9,185
  • 10
  • 33
  • 42
6
votes
2 answers

Unidentified 404 not found pages

We are getting lot of 404 page not found error which we can't find the reason with same pattern. We are not doing any redirect for this 404 pages or we are not giving link anywhere for this broken page links. The common point for this errors is…
6
votes
3 answers

Developing Internet Explorer, browser helper object extensions?

1) I am trying to make a simple BHO in C# like here already answered: https://stackoverflow.com/a/5740004/285594 2) But unfortunately they all tried less then IE11, where some made it work and some failed too 3) after following everything as…
user285594
1 2
3
45 46