Hook for "Current Card (Browse)" (card info)?

Is any hook that is invoked before opening the “Current Card (Browser)” window by “Cards → Card Info…” menu item?

How to modify content of the “Current Card (Browser)” window from an addon?

Thanks!

1 Like

You could try the gui_hooks.webview_did_inject_style_into_page hook.

Try the example given there in the docstring. Use AnkiWebViewKind.BROWSER_CARD_INFO to check for the Card Info screen.

3 Likes