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
4
votes
0 answers

Can you prevent users editing the chrome.storage.local values in a Chrome extension? What is the best way to store persistent values for an extension?

So I'm working on a Chrome extension for someone else. I don't want to give away specific details about the project, so for I'll use an equivalent example: let's assume it's an extension to run on an image/forum board. Imagine I have variables such…
4
votes
5 answers

How can I create a Vuetify based browser extension?

I'm using the Vue CLI UI. I've created a project and added the vue-cli-plugin-browser-extension So far so good. Now I'm trying to add Vuetify into the mix. I tried with the official plugin, but nothing shows up in the extension's popup. I tried…
4
votes
1 answer

Extension for Chrome or Firefox to edit pages?

Is there an extension like Firebug/Chrome "inspect element", that allows one to easily add nodes to a page, and save the changes back to a file? It strikes me that this would be nice way to develop pages.
Marcin
  • 48,559
  • 18
  • 128
  • 201
4
votes
1 answer

Simplest Way to get the current Tab Id?

I dont really unterstand how the Chrome Extension API works. It was a rough to understand how the background.js and the content.js works, but my current Problem is, that the function insertCSS(); seems to need the tabId, even if the official…
user10214015
4
votes
0 answers

Browser Extension Lifecycle

Can anyone explain the lifecycle of browser extensions in Chrome/Firefox? More specifically, I'm looking for what exactly happens when the onStartup and onSuspend events are triggered, and what triggers them. Here are a few different answers I'm…
4
votes
0 answers

What is the best practice for updating open tabs after your Chrome Extension updates (with content script)?

My Extension's content script interacts with every open tab. When I update my Extension any existing tabs will have the old content script and my Extension will not function. I have tried putting an alert on the page asking users to refresh…
11teenth
  • 1,853
  • 1
  • 15
  • 28
4
votes
1 answer

Console.log double logging from web workers

My intention is for one message to be passed to the worker after it is created, and for that message to be logged by the worker and a reply to be sent back. What happens is that the message sent to the web worker is logged twice, and only one reply…
4
votes
1 answer

How do I make an AJAX request from a firefox browser extension?

I'm totally new to browser extensions. I've had some success making a simple extension that automatically changes webpage content, and now I want it to change that content after querying the server for a true or false value. I'm trying to do this…
Truth
  • 486
  • 7
  • 19
4
votes
1 answer

Chrome Extensions: Detect copy action from Window's URL bar

Is it possible to listen for a copy event that doesn't occur in the document of an HTML page, such as the browser window's URL bar? Perhaps there is a Chrome Extension API or a crafty solution that I'm overlooking?
4
votes
2 answers

REST development plugin for browser with all HTTP methods

Is there a plugin for any web browser which gives you a GUI to perform PUT's, DELETE's etc? I've written a navigable REST app, and I would like to be able to poke around a bit with my browser to try it out and to demo the API, but since they all…
Alexander Torstling
  • 18,552
  • 7
  • 62
  • 74
4
votes
1 answer

How can i check whether the browser is active or not in crossrider?

I need to calculate the browser using time in an extension. If i can check whether the browser is active or not, then it is easy to calculate the time. How is this possible in crossrider? var focused = true; window.onfocus = window.onblur =…
Sumesh P
  • 385
  • 2
  • 10
4
votes
2 answers

Access to image and video data from browser extension (vs CORS)

I'm trying to write a browser extension that does some image processing but I need access to the image data. My approach was to create a hidden canvas element, draw images and video to it via drawImage, and then read the pixel data with…
jozxyqk
  • 16,424
  • 12
  • 91
  • 180
4
votes
2 answers

Dispatch messages from a safari extension popover to the global page

I have a safari extension popover that needs to communicate with its global page. From a content-script I am using safari.self.tab.dispatchMessage(name,data); to accomplish that. From a popover I didn't find a way to do that. I know that I can…
Stan Wiechers
  • 1,962
  • 27
  • 45
4
votes
1 answer

No www in Chrome Extension Manifest

I'm trying to get a Chrome Extension for a site which redirects www.site.com to site.com This manifest file works. { "name" : "MySite Redesign", "version": "0.1", "manifest_version": 2, "description" : "Improves MySite visual design to make the…
colmtuite
  • 4,311
  • 11
  • 45
  • 67
4
votes
1 answer

Implementing setTimeout native method

I'm working on browser-extension in facebook, now my problem is that facebook override the setTimeout & setInterval native functions, and their implementation do not work on Internet Explorer. Is there a way to implement those functions?