Detect metamask installation without refreshing page - browser

I'm struggling with detecting that my user has installed metamask extension while being on my page. I have install button which redirects user to the metamask page, if he installs it the window.ethereum is not being updated without refreshing the page.
Is there another way of detecting that metamask was installed?

Apparently there is metamask library for this https://github.com/MetaMask/metamask-onboarding

Related

How to install test version of Chrome extension?

I published an update to my chrome extension (without submitting for review) and the extension's status is now "Published to testers" but I can't figure out how to install the test version.
I added my email address as a trusted tester account but when I open the extension's page in the chrome web store it still lists the old version.
What am I doing wrong?

Is it possible to detect a user's browser(like IE11) and then redirect them to another(like Chrome)?

I have an application that does not work in IE. I am assigned the task of redirecting the user to Chrome if they open the application in any other browser. Is this possible? If not, how can I detect what browser a user is utilizing so that I may display a banner that instructs them to use Chrome?
I have researched this topic but have not found any documentation on this besides the jQuery Browser Rejection plugin
The Dream goal would be to launch chrome if the user has it installed or suggest a download if the user does not have it installed

How to check if browser supports extensions?

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
}

How to force a Chrome extension to load after inline install

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.

Is there a way to prevent the warning message from displaying on a Chrome extension installation

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.

Resources