diff --git a/src/settings/settings.js b/src/settings/settings.js index 2ec455d..d57dc46 100644 --- a/src/settings/settings.js +++ b/src/settings/settings.js @@ -156,6 +156,17 @@ URL.revokeObjectURL(link.href); }); } + }, + { + name: 'saved_image_count', + description: '', + type: 'button', + button: 'Get saved image count', + onclick: () => { + (browser ?? chrome).runtime.sendMessage({type: 'download_history_get_all'}).then((r) => { + alert(`You have downloaded approximately ${r.length} unique image(s)`); + }); + } } ], 'Hide Elements': [