Closed kav2k closed 7 years ago
Initial work done with a12e9da916307afd3c511dddc55eeb53acfc7d09
Remaining: discard protection for cards marked as do-not-discard.
What kind of discard protection are you aiming for? Making the button non-clickable when Favorite is red?
@Zarremgregarrok I'm aiming at the following:
If red, one click on the button replaces the text with "Sure?" If clicked again within, say, 3 seconds, action is taken as normal. If not, button goes to initial state.
The problem with all this is that due to content script context isolation, I can't easily cancel the default handler for the click. It will need pretty invasive injection into the page. Something I hoped to avoid, but I don't see another way out. Do note that I already inject code to deal with handlers - but only to read them, not override them.
Closing this; protection will be tracked at #12
Enable marking card discard as favourite / unwanted