I was browsing through my deck and I found out I had a few leeches that were automatically suspended and I didn’t know about it. So I wondered if it were possible not to exclude leeches from review, but instead keep them in my review queue and notify me whenever they pop up in review. It turns out this is indeed possible and very easy to do so.
The first important step is that you change the leech action in your deck options to “tag only” so that leeches will not get removed from your review queue.
Then add the following piece of code to the front template of your card. It scans the string of tags for the word “leech” and performs an action as specified in the if block.
<script>
var tags = "{{Tags}}";
if (tags.search("leech") != -1) {
// perform action if card is tagged as leech
window.alert("This card is a leech!");
}
</script>
This example will create a dialog box whenever you review a card with tag:leech. The appearance of the dialog box will depend on your OS; on my system it looks like this:
If you know a little CSS, you can of course replace the code with something that directly modifies the appearance of the card instead of creating a dialog box. FWIW, dialogs with window.alert() seem to be currently working on Desktop and AnkiMobile but not on AnkiDroid.