Annoyed that there’s no “resurrect” button easily accessible during extra study for burned items? I’ve got some duct tape for you.
(windows only I think?)
I hacked together a really quick and dirty AHK script that navigates to the item page for you. Once you get this saved and running as an AHK script, you have to highlight the item (or in the case of radicals, the full radical name) then hit F2 + itemtype.
what’s ‘itemtype’? that’ll be k, v, or r depending on what the item is. To resurrect the selection as a kanji, F2+k. To resurrect the selection as a vocab item, F2+v, and r for radicals.
The script opens a new tab, navigates to wk.com/kanji or radicals or vocab / {item}, and tabs around to focus the resurrect button. As a safeguard, you have to hit enter on the resurrect button yourself, but if that annoys you feel free to add an enter input to the script.
The script is below.
F2 & k::
Send ^c ; Copy the selected text
Sleep 100
Send ^t ; Open a new tab
Sleep 500 ; Wait for the new tab to open
Send ^v ; Paste the copied term
Send {Home}
Clipboard := "https://www.wanikani.com/kanji/" ; Set the base URL in the clipboard
Send ^v ; Paste the link
Send {Enter} ; Navigate to the full URL
Sleep 2300 ; Wait for the page to load
Loop, 8 { ; Adjust the number of Shift+Tab presses based on the page layout
Send +{Tab}
Sleep 100
}
Return
F2 & v::
Send ^c ; Copy the selected text
Sleep 100
Send ^t ; Open a new tab
Sleep 500 ; Wait for the new tab to open
Send ^v ; Paste the copied term
Send {Home}
Clipboard := "https://www.wanikani.com/vocabulary/" ; Set the base URL in the clipboard
Send ^v ; Paste the link
Send {Enter} ; Navigate to the full URL
Sleep 2300 ; Wait for the page to load
Loop, 8 { ; Adjust the number of Shift+Tab presses based on the page layout
Send +{Tab}
Sleep 100
}
Return
F2 & r::
Send ^c ; Copy the selected text
Sleep 100
Send ^t ; Open a new tab
Sleep 500 ; Wait for the new tab to open
; Process the copied string: Replace spaces with dashes and convert to lowercase
StringLower, term, Clipboard ; Convert to lowercase
StringReplace, term, term, %A_Space%, -, All ; Replace spaces with dashes
Clipboard := term
Send ^v ; Paste the copied term
Send {Home}
Clipboard := "https://www.wanikani.com/radicals/" ; Set the base URL in the clipboard
Send ^v ; Paste the link
Send {Enter} ; Navigate to the full URL
Sleep 2300 ; Wait for the page to load
Loop, 8 { ; Adjust the number of Shift+Tab presses based on the page layout
Send +{Tab}
Sleep 100
}
Return