Open bjohas opened 4 years ago
| 2nd warning: possible. Easiest to do before the regular popup.
For this, would the monkey patch be easier? For me, any extra warning would be better than none, so if there's something that's easy to do, then let's do that.
It'd be a monkey patch (no other way). How involved it'd be depends on where you want to interject -- all places, specifically the keystroke or menu option, etc.
How many places are there? Menu for sure, as well as keystroke (the zotero default).
Another option would be to distinguish the delete dialogue better from the 'remove from collection dialogue'. E.g., if the delete dialogue could be bright red, that would also be ok. However, not sure whether that can be patched...
I don't really know how many there are. Just struck me -- for an extra confirmation on delete, after the regular prompt would be easier, since we can patch zoteroPane.deleteSelectedItems.
The existing dialog is shown in response to a call into the C-based internals of Firefox. That's out of reach for monkey patches, so we cannot change that in any way.
https://forums.zotero.org/discussion/85810/discouraging-delete?new=1
We're using Zotero (and this plugin) in group libraries where a fair number of people are co-editing in principle. We've had issues where people have accidentally deleted items without realising (when e.g., they had just wanted to remove them from the collection).
Is there a way in which the delete dialogue could be made more distinct from the 'remove from collection' dialogue? Or restricting deletion?
Would it be possible to do with monkey patching in this extension? E.g.,