[Userscript]: Double-Check (Version 2.x)

Hiya, do you accept additional feature contributions?

I wanted to override lightning mode and show Item Info only for vocabulary readings (same as requested in this Topic). That combined with WaniKani Pitch Info and autoplaying the readings is helping me remembering intonations.

Diff from Double-Check 2.2.37
@@ -62,7 +62,8 @@
             autoinfo_correct: false,
             autoinfo_incorrect: false,
             autoinfo_multi_meaning: false,
-            autoinfo_slightly_off: false
+            autoinfo_slightly_off: false,
+            autoinfo_always_vocab_readings: false
         }
         return wkof.Settings.load('doublecheck', defaults)
             .then(init_ui.bind(null, true /* first_time */));
@@ -121,6 +122,7 @@
                         autoinfo_incorrect: {type:'checkbox',label:'After incorrect answer',default:false,hover_tip:'Automatically show the Item Info after incorrect answers.', validate:validate_autoinfo_incorrect},
                         autoinfo_multi_meaning: {type:'checkbox',label:'When multiple meanings',default:false,hover_tip:'Automatically show the Item Info when an item has multiple meanings.', validate:validate_autoinfo_correct},
                         autoinfo_slightly_off: {type:'checkbox',label:'When answer has typos',default:false,hover_tip:'Automatically show the Item Info when your answer has typos.', validate:validate_autoinfo_correct},
+                        autoinfo_always_vocab_readings: {type:'checkbox',label:'Always after correct vocabulary reading',default:false,hover_tip:'Automatically show the Item Info when you answer vocabulary readings (to show reading/pitch info).'},
                     }},
                 }},
             }
@@ -603,7 +605,13 @@
                 }
 
                 set_answer_state(answer, true /* show_msgs */);
-                if (settings.lightning_enabled) {
+
+                var showVocabReading = settings.autoinfo_always_vocab_readings && itype === 'v' && qtype === 'reading';
+                if (showVocabReading) {
+                    $('#option-item-info').click();
+                }
+
+                if (settings.lightning_enabled && !showVocabReading) {
                     new_submit_handler(e);
                 }