xcv58 / Tab-Manager-v2

Quickly and conveniently manage your open tabs https://tab-manager.vercel.app
https://xcv58.xyz/tabs
MIT License
176 stars 17 forks source link

Add a survey page when the extension uninstall #1066

Open xcv58 opened 3 years ago

xcv58 commented 3 years ago

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/setUninstallURL

Things need to consider:

  1. The version
  2. The browser
  3. The OS
xcv58 commented 3 years ago

https://www.typeform.com/

Siddhant-K-code commented 3 years ago

can you guide me, for implementing this, where we have to made changes in & how ? It will be more feasible to understand.

xcv58 commented 3 years ago

can you guide me, for implementing this, where we have to made changes in & how ? It will be more feasible to understand.

If you are not familiar with extension development, please read https://developer.chrome.com/docs/extensions/


We can use the setUninstallURL https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/setUninstallURL to set the URL.

In the meantime, we need to figure out the survey services that support:

  1. Free for limited usage (<1000 per month)
  2. Support pre-filled field (by URL query params is ideal) because we need to distinguish different OS, browser, and versions.
  3. Generally available, i.e. not blocked by the Chinese government.

Codewise, it should be straightforward because we just need to gather the os, browser, extension version information and craft an URL in the file: https://github.com/xcv58/Tab-Manager-v2/blob/master/packages/extension/src/js/background.tsx#L11