I have a website which includes an inline installation of Chrome extension.
The problem is that once the extension is installed it doesn't act on the my website until the user refresh the page. Is there a way to load the extension on the existing page without refresh?
I think you can not load you extension without reload exsiting page after install.
so I think, try to use chrome.webstore.install(url, successCallback, failureCallback)
and call location.reload() in suncessCallback function.
Related
I have written a chrome extension for my website, but discovered that extensions do not work on mobile browsers for chrome. Right now, the website checks if the user has the extension installed. If the user doesn't, the website asks the user to install the extension via inline install.
The issue is that I don't want to prompt a user to install an extension if they are running chrome on a mobile devise because it won't work. I would like to add a check for the ability of a browser to run extensions instead of user agent sniffing for mobile devise. Modernizr doesn't seem to have a check for this. Any ideas?
if (window.chrome.runtime === undefined) {
// If it is Chrome it has not extension support
}
We built a chrome extension recently and we want to use it internally without publishing it to chrome web store.
But in the latest chrome browser versions, this feature is disabled and one cannot use local extensions anymore. We can use it only if it's published to chrome web store.
So, instead of using the .crx file, I am using the unpacked extension. This works fine and doesn't disable the extension. But gives an alert everytime I open the browser, which I need to cancel.
Are there any settings that can be changed to avoid this alert. Thanks.
Is there any shortcut or an extension to reload extensions in Chrome? This is a really big pain while developing extension for Chrome.
I think the best way to do this is to actually open the popup in a page. To do this use the URL:
chrome-extension://{extension-id}/{page.html}
This allows you to use Chrome Developer tools and when you press refresh the extension is refreshed with the latest code changes. It also updated the extension popup.
I am trying to develop a chrome extensions. I've developed a few firefox extensions a few years ago. In firefox it was possible to automatically run your extension of the page, and alter the page's content (add HTML and style it). I'd like the extension to automatically change the html, without requiring the user to click a button up in the browser's window.
How to get chrome to run extensions automatically?
Thank you
You just have to declare a content script in your manifest.json, it will be automatically executed on all pages matching the corresponding URL pattern without any user interaction.
When you install an extension to the Google Chrome browser from Chrome's website, the installation procedure pops up instantly, without warning. (Chrome's website)
When you install an extension from any other website, there is a warning message: "Extensions, apps, and themes can harm your computer. Are you sure you want to continue?"
My extension is trusted and displayed on Chrome's website, but is there a way to remove this scary warning from my website's download page ?
Thanks
I figured out myself there is no way to do this because chrome just checks if the extension install is launched from its own website.
For people wondering what I eventually did (if there will ever be) :
As soon as the user clicks on the install button, I hide the document with an 80% opaque layer and show a box pointing where to click to continue the installation.