r/learnjavascript • • Oct 21 '26

Function to inspect elements on anki

Hi!

First of all, I am not sure if this is the right sub.

But I was wondering if there was a way to add a function in an addon for an app (anki) that would let me know the "name" of the element I selected or clicked on, just like when pressing f12 on a web page.

The thing is that some elements I want to "find" come from an addon and not from anki directly.

4 Upvotes

5 comments sorted by

View all comments

1

u/SamIAre Oct 21 '26

I’m not really familiar with Anki or its add-on ecosystem, but a quick browse of the docs says the UI is written mostly in Python/PyQt and some screens use TypeScript (an extension of JavaScript) and Svelte.

The F12 inspection tools are specific to web browsers and apps built with embedded browsers. I don’t know how much an add-on has the ability to inspect other add-ons and I have no idea what the UI inspection tools are like for PyQt, like if it renders down to HTML or native platform UI elements. Fwiw there’s not really an equivalent to F12 for native apps (at least not one as accessible).

There is the possibility that the add-on you want to inspect is open source, in which case you could just look directly at the source code.