I can't get a response from my content script to show up in my popup.html. When this code runs and the find button is clicked, "Hello from response!" prints, but the variable response is printed as undefined. The ultimate goal is to get t...
I have a chrome extension, with content script 1 which programmatically creates an iframe (not same domain iframe) on the current page. I want to run a content script 2 of my chrome extension inside this new iframe (e.g. when a user clicks on somethi...
I'm trying to inject a handlebars template in a page using content_scripts from the Chrome extension, using the following code in the page called from content_scripts :   var xhr = new XMLHttpRequest(); xhr.open('GET', chrome.extension.ge...
I have a script that I want to be injected into the document BEFORE load. I.E; it should function as if  <script..>MYSCRIPT HERE</script>  <html> . .   I have made a script in chrome that executes correctly (I can alert(0) etc) but,...
I'm trying to include gmail.js from here. But the object gmsrc is invalid, the function get.user_email() fails. I'm trying to develop a Chrome extention, the chrome developer tools (F12) tells me     Uncaught TypeError: Cannot read property &...
What is the recommended way to add a @font-face stylesheet rule through a chrome-extension?  The problem is that the url of the font embed is located from within the extension, so I must do it in javascript in order to use chrome.extension.getURL.  I...
I am making a content script that does something with the google results webpage.   The line below in the manifest.json is not valid.      "matches": [ "https://www.google.*/*" ]   The error due to above line in manifest.json is:...
$x("//a[contains(@href,'.jpg')]");   works as expected from the developer tools command prompt. But, when in an extension's content-script I get a '$x is not defined'.  Why is this not available in a content-script or is t...
As an experiment with React.js, I am trying to build a chrome extension that uses a content script to inject a input field (and now a button too) into certain websites. In this case I am trying to inject it into Twitter. It looks like this:  please n...
I'm making a content script extension for Google Chrome, it adds functionality to a website's page. I want to add a couple of options, not big deal really, I'd just need two strings (none of which are sensitive user data).  From this answ...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.