google-chrome-extension

Silent install of chrome extension using registry

百般思念 提交于 2019-12-21 22:27:04
问题 For some reason I cannot get this to work. I'm following the exact procedure described here http://developer.chrome.com/extensions/external_extensions.html#registry And I still cannot get the extension listed. If I install it manually, using "Add Unpacked Extension" it works just fine. Any help would be greatly appreciated 回答1: One of many writeups on this subject: Google on Friday announced that it is changing its stance for silently installing extensions in its browser. As of Chrome 25,

Accessing/editing the content of an iframe from a chrome extension

不羁的心 提交于 2019-12-21 22:26:49
问题 I'd like to edit the content of an iframe through a chrome extension but am unable to because contentWindow/contentDocument of the iframe returns undefined. Been looking around for an answer and as I've understood it it's easily fixed if the iframe exists on the page from the beginning, but it doesn't. The iframe in question is the gmail compose text area which is in the form of an iframe, and it's added to the DOM dynamically. Is there any way to do this through a chrome extension? Edit: I'm

redirect to page.html after chrome extension installs

可紊 提交于 2019-12-21 21:33:40
问题 Here is my code, but it refuses to complile on the chrome developer dashboard. I have a page called my-page.php on the server { "content_scripts": [ { "all_frames": true, "js": [ "go.js" ], "matches": [ "\u003Call_urls\u003E" ] } ], "description": "blahhh", "icons": { "128": "icon128.png", "16": "icon16.png", "48": "icon48.png" }, "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCdw+eIzaqEWfjrzJZ1TFO0/QVxWNdQEMvf4V6xdpZpTfIW3lOPVIJIvA6D4wyv6H+C8KAgbh58JEkqzgEC/1a

After adding ExtensionInstallSources preference with my URL to Chrome Preferences, still won't allow installing “.crx” packaged app

久未见 提交于 2019-12-21 21:20:05
问题 I added the preference ExtensionInstallSources (as per: http://www.chromium.org/administrators/policy-list-3#ExtensionInstallSources ), it still is not allowing me to install my "app.crx" from my URL. I added it as follows: File: /home/myuser/.config/google-chrome/Default/Preferences "extensions": { "ExtensionInstallSources": [ "http://myurl.com/*" ], ...elided... Yet, when I go to the url http://myurl.com/myapp/app.crx it tells me it cannot install from that url. How do I fix this? MORE INFO

INVALID_RESPONSE_ERROR from google.payments.inapp.getSkuDetails

空扰寡人 提交于 2019-12-21 21:07:26
问题 I am trying to get my Google browser extension in-app purchase working, but I keep getting an error. I have connected my Google Wallet Merchant account to my Chrome Web Store Developer Dashboard. In the edit page of my extension in my Dashboard, I have added the items to the "In-app products" tab (and made sure they are active). I have included the buy.js JS file in your app/ext package. But when I try to get a list of the items within my extension by calling getSkuDetails method, I always

Capture screen — chrome.desktopCapture.chooseDesktopMedia fails — PNacl extension

南楼画角 提交于 2019-12-21 20:57:19
问题 I'm trying to use the desktopCapture API in the following manner. chrome.desktopCapture.chooseDesktopMedia( ["screen", "window"], onAccessApproved); chrome.desktopCapture shows as undefined when I set a breakpoint and inspect it. Permissions in my manifest file are as follows:- "permissions": ["desktopCapture", "notifications" ] Common causes for failure of this API are listed here as a permission is missing in the application's manifest.json file the API is defined on a newer version of

Chrome extension popup showing by condition

心已入冬 提交于 2019-12-21 19:54:37
问题 I want to show popup by click, but only if condition is false. After click to extension icon background js searchig for tab with current name. If tab found background js continues working. If not found - i want to show popup with instructions. Can`t understand how to just show popup in this case. I can set popup by browserAction.setPopup(), but popup will be displayed only after next clicks. I just want to show my popup one time. It is definitely posible, I've seen this behavior on other

Jquery: Get favicon with full path

徘徊边缘 提交于 2019-12-21 19:43:28
问题 I want to grab the link of a favicon from a website with Jquery. I simply use $('link[rel="shortcut icon"]').attr('href'); and it works fine. But... I do not always have a complete path. For example I can have something like http://mywebsite.com/myicon.ico or only a relative path /myicon.ico I would like to always have the full path, even if the Url is coded as a relative path. Is there a simple solution to this? I use this as a Content Script in a Google Chrome Extension. 回答1: if you use the

Jquery: Get favicon with full path

早过忘川 提交于 2019-12-21 19:42:03
问题 I want to grab the link of a favicon from a website with Jquery. I simply use $('link[rel="shortcut icon"]').attr('href'); and it works fine. But... I do not always have a complete path. For example I can have something like http://mywebsite.com/myicon.ico or only a relative path /myicon.ico I would like to always have the full path, even if the Url is coded as a relative path. Is there a simple solution to this? I use this as a Content Script in a Google Chrome Extension. 回答1: if you use the

JavaScript errors (localstorage, cookie) loading sandboxed iframe within Chrome Extension

瘦欲@ 提交于 2019-12-21 18:33:04
问题 I'm writing a Chrome Extension that shows a preview of a website of a user's choosing in a sandboxed iframe. I'm finding that a lot of pages do not render properly in the iframe because they get JavaScript errors such which breaks scripts that are important to rendering the page (like hiding a loading dialog): "Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag." "Uncaught DOMException: Failed to