Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open a url while uninstalling Google Chrome Extension?

I was able to do it in Firefox using nsIObserverService. Is there anything similar? Any link to proper documentation will be very helpful.

like image 217
ManojMarathayil Avatar asked Dec 22 '22 01:12

ManojMarathayil


2 Answers

You can now set an uninstall url as of Version 41 of chrome.

https://code.google.com/p/chromium/issues/detail?id=84556

Here is the documentation. https://developer.chrome.com/extensions/runtime#method-setUninstallURL

hths, future people who read this question.

Put it in background or service worker JavaScript file chrome.runtime.setUninstallURL('your URL here');

like image 125
JamesKn Avatar answered Feb 08 '23 23:02

JamesKn


There are no hooks for uninstall within the Chrome extension API. Feel free to star the following feature if you want to see it included:

http://code.google.com/p/chromium/issues/detail?id=19383

like image 40
Mohamed Mansour Avatar answered Feb 08 '23 23:02

Mohamed Mansour