Opening a New Window when Chrome Extension is Uninstalled

sharataka

I recently uninstalled a Chrome extension and when I deleted it, it opened up a new page that was a survey for me to fill out. I've been reading through the Chrome developer docs but can't seem to find how to do this. Any advice?

The extension was Delight for Chrome at https://chrome.google.com/webstore/detail/delight-for-chrome/hehbgjdnbibkndghdlilefececadokpb

Božo Stojković

Use chrome.runtime.setUninstallURL.

chrome.runtime.setUninstallURL("your-survey-site.com", function() {
    var lastError = chrome.runtime.lastError;
    if (lastError && lastError.message) {
        console.warn(
            "Unable to set uninstall URL: " + lastError.message
        );
    } else {
        // The url is set
    }
});

Note that the callback is not called before extension is uninstalled, but when the url for uninstalling extension has been set.

You cannot listen for uninstall event from the extension (unless you have a second extension to do that...) to do things before uninstall, like cleanup.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Is Chrome extension Content Script scope shared when opening a new tab with window.open (since Chrome 45)?

From Dev

Opening chrome extension in new tab

From Dev

Opening and accessing a pop up window in chrome extension

From Dev

Is chrome.storage.sync data cleared when an extension or app is uninstalled?

From Dev

How can I get a new browser session when opening a new tab or window on Firefox/Chrome?

From Dev

How to launch a new window in Google Chrome Extension

From Dev

Chrome Extension to move multiple tabs to new window

From Dev

Chrome Extension to move multiple tabs to new window

From Dev

Error message when opening new window in Tkinter

From Dev

Python - How to Disable an Extension, After Opening a Chrome Window, with Selenium

From Dev

GNOME extension 'window list' remains after uninstalled

From Dev

Chrome Extension: webRequest Redirect to Existing Tab, Without Opening New Tab

From Dev

Chrome Extension: webRequest Redirect to Existing Tab, Without Opening New Tab

From Dev

Opening and closing chrome extension

From Dev

Chrome extension open new window behind the current window

From Dev

How to disable chrome from opening up "new window" and "tabs"?

From Dev

how not to lose data when closing and opening chrome extension popup

From Dev

Window not opening in a new tab

From Dev

opening a link in a new window

From Dev

Opening new window in wicket

From Dev

Opening New Window in Jframe

From Dev

Is there a way to close a chrome extension popup, when the user is on a separate chrome window?

From Dev

Close modal dialog when opening link in new browser tab/window

From Dev

Is there a way to keep current window active when opening a new program?

From Dev

Make "pro" style terminal default when opening new tab/window

From Dev

Close modal dialog when opening link in new browser tab/window

From Dev

object contents lost when opening new page within window

From Dev

Google Chrome Extension Opening Url

From Dev

Opening a new terminal window in C

Related Related

  1. 1

    Is Chrome extension Content Script scope shared when opening a new tab with window.open (since Chrome 45)?

  2. 2

    Opening chrome extension in new tab

  3. 3

    Opening and accessing a pop up window in chrome extension

  4. 4

    Is chrome.storage.sync data cleared when an extension or app is uninstalled?

  5. 5

    How can I get a new browser session when opening a new tab or window on Firefox/Chrome?

  6. 6

    How to launch a new window in Google Chrome Extension

  7. 7

    Chrome Extension to move multiple tabs to new window

  8. 8

    Chrome Extension to move multiple tabs to new window

  9. 9

    Error message when opening new window in Tkinter

  10. 10

    Python - How to Disable an Extension, After Opening a Chrome Window, with Selenium

  11. 11

    GNOME extension 'window list' remains after uninstalled

  12. 12

    Chrome Extension: webRequest Redirect to Existing Tab, Without Opening New Tab

  13. 13

    Chrome Extension: webRequest Redirect to Existing Tab, Without Opening New Tab

  14. 14

    Opening and closing chrome extension

  15. 15

    Chrome extension open new window behind the current window

  16. 16

    How to disable chrome from opening up "new window" and "tabs"?

  17. 17

    how not to lose data when closing and opening chrome extension popup

  18. 18

    Window not opening in a new tab

  19. 19

    opening a link in a new window

  20. 20

    Opening new window in wicket

  21. 21

    Opening New Window in Jframe

  22. 22

    Is there a way to close a chrome extension popup, when the user is on a separate chrome window?

  23. 23

    Close modal dialog when opening link in new browser tab/window

  24. 24

    Is there a way to keep current window active when opening a new program?

  25. 25

    Make "pro" style terminal default when opening new tab/window

  26. 26

    Close modal dialog when opening link in new browser tab/window

  27. 27

    object contents lost when opening new page within window

  28. 28

    Google Chrome Extension Opening Url

  29. 29

    Opening a new terminal window in C

HotTag

Archive