google-chrome-extension

Chrome extension permission for “about:blank” page

旧街凉风 提交于 2019-12-23 07:48:19
问题 My chrome extension is not using content_scripts because I do not want to inject the code into every page. Instead, when the user clicks on the button a popup window opens and injects code into the page. So, in the manifest.json there is a permissions block: "permissions": [ "activeTab" ] And in the popup.js there is this code: chrome.windows.getCurrent( function(win) { chrome.tabs.query({ 'windowId': win.id, 'active': true }, function(tabArray) { // inject css & js only on initial click

Get reactInstance from Javascript in Chrome Extension

爱⌒轻易说出口 提交于 2019-12-23 07:39:16
问题 I'm currently facing a problem while developing a Chrome Extension. This extension is used on a ReactJS based website. I need to scrap some data from the page. He is an example of the page. <div class="UserWallet"> <tbody> <tr class"Trans"><td>...</td></tr> ... <tbody> </div> When I use the Chrome inspector, I can see that my div class="UserWallet"> has a property __reactInternalInstance . I found a function findReact(element) used to get the React Instance. This function is used in an other

How to run chrome extension in android mobile chrome browser [closed]

 ̄綄美尐妖づ 提交于 2019-12-23 06:56:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 11 months ago . I have created chrome extension it's running in the web browser in desktop.But i am not able to download in mobile chrome browser.I want to run same extension in mobile and desktop chrome browser. So is there any way to run extension in mobile chrome browser. 回答1: According to chrome FAQ, chrome for android

chrome extension, pass data from content to background

依然范特西╮ 提交于 2019-12-23 06:08:47
问题 I've created a chrome extension that consists of manifest.json, content.js and background.js. in content.js, I'm extracting the current tab's URL and in background.js, I'm opening a new tab. what I want to do, which doesn't work is to pass the URL from content and append it to the URL that I'm calling in background. content.js: chrome.extension.onMessage.addListener(function(request, sender, sendResponse) { if(request.greeting=="gimmieyodatas") { var output ="URL="; //check for the character

Easy way to get Local Storage Value to Content Script [Chrome Extension]

天涯浪子 提交于 2019-12-23 06:06:23
问题 I want some data stored in Local storage to content script page. As its not directly available, I did it through chrome.runtime.sendMessage But I have several values and looks like this. var username, apikey, openexchange, currency, locale; chrome.runtime.sendMessage({method: "getLocalStorage", key: "username"}, function(response) { username = response.data; }); chrome.runtime.sendMessage({method: "getLocalStorage", key: "apikey"}, function(response) { apikey = response.data; }); chrome

Displaying Adsense Ads in Chrome Extension

↘锁芯ラ 提交于 2019-12-23 05:59:31
问题 I'm Trying to Monetize a Google Chrome Extension, The Extension has a large panel that display content to the users. I want to add Small Sized Advertisement from Google Adsense into the extension panel. However as far as I know for an Adsense account to be approved, it has to be associated with an existing website that has some good content inside. What are my options to user Adsense? are there other Ads Providers that can be helpful? 来源: https://stackoverflow.com/questions/51088491

Unable to load Chrome extension in Protractor tests

跟風遠走 提交于 2019-12-23 05:58:17
问题 Given below is a snippet from config.js capabilities: { 'browserName': 'chrome', 'chromeOptions': { 'args': ['--load-extension=' + '/Users/prashanthsams/Downloads/addon.crx'] } }, Note: I am able to install the .crx extensions manually through Chrome UI and not through automation 来源: https://stackoverflow.com/questions/39605385/unable-to-load-chrome-extension-in-protractor-tests

need to open chrome native app on click of it, not at the time of enable the extension

半世苍凉 提交于 2019-12-23 05:42:08
问题 I have an chrome native application in windows form( c#). it use to open when i enable the extension in chrome. Can we manage this to open only when the application exe is clicked? How can we do that? This is the c# code private static string OpenStandardStreamIn() { //// We need to read first 4 bytes for length information Stream stdin = Console.OpenStandardInput(); int length = 0; byte[] bytes = new byte[4]; stdin.Read(bytes, 0, 4); length = System.BitConverter.ToInt32(bytes, 0); string

Can't change element from iframe generated by Chrome Extension

谁说我不能喝 提交于 2019-12-23 04:57:15
问题 I'm working on a Chrome Extension. For now, there is one content script which returns an XPath of clicked element. Another content script adds an iframe into the current html page. In this iframe there is a textarea field which should show the xpath of the element when user clicks on it. Unfortunately it does not work. The xpath is correctly generated (tested using console.log(path) but the command: $('#xh-bar').contents().find('#product-path').val('some_val'); Doesn't alter the textarea . Do

Which way to disable firebug in my website?

南笙酒味 提交于 2019-12-23 04:51:30
问题 I want to disable firebug using on each my webpages. Sometimes , we embedded important keys or id in my ui widgets. Some of our methods from server side will takes these keys for processing. So , someone can edit by firebug. That may cause wrong data updating of our database or wrong data showing in webpages. For security options , I want to disable using firebug or other developer tools of browsers. As GoogleChrome 's home page , when I open firebug in it , I want to show error message as