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
6
votes
1 answer

Use facebook authentication for browser extension

I'm wondering what will be the best way to implement Facebook connect for a browser extension . the two options I have in mind are: Implement Oauth protocol directly in the extension context (http://developer.chrome.com/extensions/tut_oauth.html)…
5
votes
2 answers

Can firefox's multi-account containers extension be replicated in chrome or chromium based browsers?

I love the firefox extension multi-account containers. I want to switch to brave browser but I can't find a good alternative. Is it a functionality that can only work in firefox due to API limitations or is it possible to implement it in chromium…
5
votes
2 answers

How to Access a Global Variable through TypeScript in a Browser Extension Context (and partially type it if possible)

1. The Problem I'm trying to access a global variable from a website — random OGS Example — through TypeScript in order to get data from the current board game. I'm pretty new to TS so I'm not really sure how I would type this variable either. The…
Philippe Fanaro
  • 6,148
  • 6
  • 38
  • 76
5
votes
4 answers

Prevent my Elm app from crashing when a 3rd party changes the DOM

I have an Elm app. A while ago I realized that my app was crashing locally when I used FontAwesome icons. I came to understand that it happened because I chose SVG icons and therefore FontAwesome was modifying the DOM. That conflicted with Elm's…
viam0Zah
  • 25,949
  • 8
  • 77
  • 100
5
votes
1 answer

--load-extension parameter for chrome doesn't work

Does anyone know how to load unpacked google chrome plugin from command line? I tried the following, but it doesn't work: "C:\Users\\AppData\Local\Google\Chrome\Application\chrome.exe" --load-extension="" The above…
Maya
  • 95
  • 1
  • 3
  • 7
5
votes
2 answers

Why is my packaged chrome extension not updating?

UPDATE: Solved one part, but not other I have the CRX updating now (it was not rebuilding). However, Chrome will not accept the XML or CRX at an https URL. I believe #2 is because it's a self-signed certificate. Does anyone know if there's a way…
5
votes
0 answers

Extension creation fails with no information

I have a browser extension that works in Firefox, IE and Chrome and I'm currently porting it to safari. I followed the instructions on the apple developer site and also renamed the extension folder to myext.safariextension . I got a certificate and…
Benjamin Gruenbaum
  • 270,886
  • 87
  • 504
  • 504
5
votes
3 answers

Add-on to copy a page element with styles

I'm looking for an add-on for any browser that could copy any particular web page element with all it's styles to clipboard to be paste-in and show someone. The aim is to have an opportunity to quickly share a small part of my big project or to…
4
votes
2 answers

Safari extension send message to a specific tab

Is there a way to send a message from the global page to a specific tab? What I'm currently doing is, on tab creation the injected script creates a unique id and sends a message with this number to the global page and the global page saves this…
4
votes
2 answers

Why does `scripting.executeScript` in Safari return a `null` element array instead of `InjectionResult` element array?

I've recently noticed a strange behaviour in Safari when injecting a content script with scripting.executeScript. The expectation here is that an array of InjectionResult objects will be returned (one for each frame the script was executed in). In…
4
votes
1 answer

In a browser extension document.location.href behaves differently when system is under test with Cypress

I have a javascript application and somewhere in the application I have to get the current address of the page by: const currentUrl = window.location.href; currentUrl should have some value like https//example.com/somepage/. It works fine in manual…
Envil
  • 2,687
  • 1
  • 30
  • 42
4
votes
1 answer

Use Tailwind in Content Script of Browser Extension

I'm trying to write a browser extension which injects some buttons and custom components into a website, therefore I wanted to use Tailwind (and DaisyUI) to style them. I found this discussion and configured my project according to the solution and…
Nils
  • 134
  • 2
  • 9
4
votes
1 answer

What is a frame in Chrome browser extensions?

In the extension API, there is a parameter for the manifest.json called all_frames Optional. Defaults to false, meaning that only the top frame is matched. If specified true, it will inject into all frames, even if the frame is not the topmost…
abc
  • 1,141
  • 12
  • 29
4
votes
1 answer

Inject Vue Component into web page using Quasar bex

I'm building a browser extension using Quasar BEX and I want to show a Vue component in the loaded web page. I already tried to use content script hook to add raw html and css in the web page, but I want to add a component from my src/components…
4
votes
1 answer

Can't select element using Cypress.io that has been appended to DOM via browser extension

I'm trying to write tests for my chrome/firefox extension using Cypress.io In my extension content-script, I append a button to the body element of the DOM and try to use cypress to click that button, however when running the test, the button is…