I’m creating a getUserMedia stream in a Chrome extension content script, and I’d like to pass it to the background script. You can’t pass non-JSON’able data between them, so my strategy is to pass instead the generated blob URL to the stream. Content script: Background script: This is fine… until I try to apply it to a generated <video />
Tag: google-chrome-extension
Use Chrome Extension API within Vue.js Component
I’m trying to access the local storage of the chrome extension ergo the chrome browser within my vue.js component. ServerList.vue This code is within my popup.html and this is what the console of the popup.html inspection tells me this: Therefore I assumed it did work. But when I check the local storage through the debugger tab I see nothing: Even
Chrome Extension – show dynamic text on mouse hover over extension icon
I’ve recently built a popup chrome extension(Popup Notes) It basically takes notes of whatever you type in popup. Now I want to show saved notes whenever I hover my mouse over the extension icon. Right now it shows the static default title on mouse hover. I know it’s possible because this extension Checker Plus for Gmail shows the unread emails
Chrome Extension: detecting keypresses in Google Docs
Hey my friends and I new to javascript and are encountering problems with some code. Currently we’re trying to make a chrome extension that detects when and how much a user works on a particular google document, by detecting keystrokes. Our current method involves creating a ‘keypress’ event listener. We put it into a content.js file that runs on any
How to make side panel in chrome extension?
I have been learning to create a chrome extension. I have tried hello world example and it was working fine. Now I have been trying to add custom code and make some changes in the hello world code according to my requirements. What I am trying to create is when the user clicks on the icon in the address bar,
Using Google Chrome extensions to import/export JSON files?
I’m creating a Google Chrome extension at the moment and I was wondering if it’s possible for it to both create JSON files to download (export) and create a button where users can make the extension open and parse JSON files that they have saved in their local file system or on a USB stick (import)? The parsing of each
Chrome Extension: How to insert CSS conditioned on variable from Chrome storage using insert CSS?
I’m somewhat new to Chrome Extensions, so I think I may just be missing something small, but I’m trying to allow users to load an additional page of CSS and a page of JS depending on their options (it’s basically a different theme). I’m storing the variable that should trigger the load as tm Right now, in the JS page,
How to detect single control keyup event but not key combinations?
It is easy to detect control key event with The problem is that any key combinations such as control-c and control-v will also trigger the event, and it seems that the event handler cannot distinguish between a single control and the control within a control-c. What I want is to allow only a single key press-and-release, but not a key
Chrome Extensions – Button in popup.html
First, i’m no professional programmer, just playing a little bit around. I tried to write a little Chrome Extension to manage other Extensions. But i already failed to create a button, on which i can click an something happens. My main problem is, that while trying to get the elementbyid, it returns NULL and fails with the addEventListener. Maybe i’m
why is this chrome.browserAction.setIcon method not working?
I’m looking at the documentation page and I can’t figure out whats wrong in my code: the documentaion says : Note that ‘details.imageData = foo’ is equivalent to ‘details.imageData = {’19’: foo}’ so I’m extremely confused Answer Your code is basically a big syntax error. A JavaScript object literal expects to be a list of pairs key: value. You can’t