Skip to content

Commit

Permalink
add get saved image count to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
usyless committed Jan 14, 2025
1 parent f8e4cf5 commit 9e46bff
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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': [
Expand Down

0 comments on commit 9e46bff

Please sign in to comment.