Essentially I want to have a script execute when the contents of a DIV change. Since the scripts are separate (content script in the Chrome extension & webpage script), I need a way simply observe changes in DOM state. I could set up polling bu...
This seems to be the easiest thing to do, but it's just not working. In a normal browser the .html and .js files works perfectly, but in the Chrome extension the onClick function is not performing what it's supposed to do.  .js file:  funct...
I have created a JavaScript variable and when I click on the button it should increment by 1, but its not happening.  Here's manifest.json.  {   "name":"Facebook",   "version":"1.0",   "description":"...
I'm working on an Extension in Chrome, and I'm wondering: what's the best way to find out when an element comes into existence? Using plain javascript, with an interval that checks until an element exists, or does jQuery have some easy...
How can I pass a parameter to the JavaScript in a content script file which is injected using:  chrome.tabs.executeScript(tab.id, {file: "content.js"});...
I'm trying to send messages from the background page to a content script, then send a message from that content script to an injected script. I've tried this, but it isn't working.   Here's what my code looks like.  manifest.json  {...
I have a chrome extension which hooks into the devtools.  Ideally I want a badge that, when clicked, opens up the devtools on the new tab which I created.  Is there any way to do this from the background page?...
I am a newbie to the browser extension development and I understand the concept of browser extensions altering the page and injecting codes into it.  Is there a way this direction can be turned around? I write an extension that provides a set of AP...
When trying to communicate between my Content- and Background Script I get the following errors:  Port error: Could not establish connection. Receiving end does not exist. Error in event handler for 'undefined': Cannot read property 'me...
I've got a web page with its own scripts and variables that I need to execute and retrieve return values from my extension's Background.js.  I understand (I think!) that in order to interact with the web page, it must be done via chrome.tab...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.