google-chrome-extension

Chrome Extension: Sending a message to the page loaded in a specific iframe

徘徊边缘 提交于 2020-02-23 06:58:46
问题 I'm working on a Chrome extension to (among other things) support a page with multiple iframes, each of which loads a page from some other domain. I need to send a msg to the page loaded a specific one of those iframes. The top-level page and the pages in the iframe each have their own content scripts, so the full messaging API is available. From the top page, when I do chrome.runtime.sendMessage(), all the iframes get it (as does the top window, but it's easy for its content script to know

Open a local .html on extension mouse click

拈花ヽ惹草 提交于 2020-02-23 05:36:37
问题 I'm creating my first chrome extension. When the extension icon is clicked, I wish that chrome will open a new tab, and open there a local .html page I have created. Following the instructions on Google's documentation, I have created the following: manisfest.json { "manifest_version": 2, "name": "Notes", "version": "1.0", "browser_action": { "default_icon": "ninjaicon.png", "default_popup": "notes.html" }, "background": { "scripts": ["background.js"] }, "permissions": [ "tabs" ] } background

Open a local .html on extension mouse click

≯℡__Kan透↙ 提交于 2020-02-23 05:36:16
问题 I'm creating my first chrome extension. When the extension icon is clicked, I wish that chrome will open a new tab, and open there a local .html page I have created. Following the instructions on Google's documentation, I have created the following: manisfest.json { "manifest_version": 2, "name": "Notes", "version": "1.0", "browser_action": { "default_icon": "ninjaicon.png", "default_popup": "notes.html" }, "background": { "scripts": ["background.js"] }, "permissions": [ "tabs" ] } background

Location of CRX in chrome after installation?

ⅰ亾dé卋堺 提交于 2020-02-17 07:39:33
问题 Im doing a project that involves browser extension. In firefox i do know the location of where the extensions will be after you download them (under your profile folder) and I was wondering where does Chrome hides the crx after you install them? Especially in mac. I'm doing this coz i find it easier to build extension by look how other people tackles the problem especially XPCOM and now bumping into some issue with chrome extensions. 回答1: CRX files are basically ZIP files. After you install

What kind of apps are G-Suite marketplace apps?

会有一股神秘感。 提交于 2020-02-15 22:15:34
问题 The chrome web store support 3 different app types: extensions, hosted apps, and packaged apps. Extensions are for apps that have minimal UI and primarily extend the functionality of Chrome. Packaged apps can run in a tab, can access the Chrome API, and run in the background. Hosted apps run in a tab and require an internet connection to load the page from the host. But what kind of apps does the G-Suite marketplace support? I noticed that apps installed in the marketplace should up

Is it possible to perform a partial roll out in the Chrome web store?

你说的曾经没有我的故事 提交于 2020-02-14 08:08:52
问题 This comment mentions a partial roll out in Chrome Web Store. Where can I find that feature? My extension has more than 8,000 users but I don't see any partial roll out feature and I'm afraid to send the next version to all users at the same time. 回答1: I don't think it's documented anywhere . And I was wrong! Documentation link: Control how fast your app reaches users. In CWS lingo this is called "Controlled Rollout". If you don’t see the max deploy percentage control, it may be because of

Chrome Extension: How to remove content script after injection?

隐身守侯 提交于 2020-02-14 05:44:41
问题 With a Google Chrome Extension: Is it possible to remove a content script after it has already been injected into the page? There are no API methods for reloading content scripts (as far as I know), so I would like to re-inject the script and remove the old one, if possible. 回答1: No. You can't "remove" it. Running a content script can have side effects, like declaring variables and functions on the window object, connecting to the background page, or listening to DOM events. If your content

Chrome Extension: How to remove content script after injection?

半世苍凉 提交于 2020-02-14 05:44:12
问题 With a Google Chrome Extension: Is it possible to remove a content script after it has already been injected into the page? There are no API methods for reloading content scripts (as far as I know), so I would like to re-inject the script and remove the old one, if possible. 回答1: No. You can't "remove" it. Running a content script can have side effects, like declaring variables and functions on the window object, connecting to the background page, or listening to DOM events. If your content

Chrome Extension: How to remove content script after injection?

浪子不回头ぞ 提交于 2020-02-14 05:43:26
问题 With a Google Chrome Extension: Is it possible to remove a content script after it has already been injected into the page? There are no API methods for reloading content scripts (as far as I know), so I would like to re-inject the script and remove the old one, if possible. 回答1: No. You can't "remove" it. Running a content script can have side effects, like declaring variables and functions on the window object, connecting to the background page, or listening to DOM events. If your content

Chrome Extension: How to remove content script after injection?

旧街凉风 提交于 2020-02-14 05:43:25
问题 With a Google Chrome Extension: Is it possible to remove a content script after it has already been injected into the page? There are no API methods for reloading content scripts (as far as I know), so I would like to re-inject the script and remove the old one, if possible. 回答1: No. You can't "remove" it. Running a content script can have side effects, like declaring variables and functions on the window object, connecting to the background page, or listening to DOM events. If your content