Replace `window.prompt()` with custom "add alert to list" dialog.