Count occurrences

Hi, for each of these titles I’m counting the occurrences of “prestito”.
The path for every record/title is:

Lo trovi in > Apri la lista completa > Tutte le biblioteche.

This userscript seems working good, but I would like to have the results before I click on Apri la lista completa > Tutte le biblioteche. Would this be possible? Thanks so much!

Given that the script appears to be listening for a mutation, the only way you’d be able to get the information “before” clicking the button would be to find the source and query it directly… i’m not able to immediately see an obvious source myself, but i’m not doing a complete deep dive on the many, many loads that page pulls through.

1 Like

Thanks, @m_hutley, I reformulated the question below:

For each of these titles I’m counting the occurrences of “Rientro previsto”.
The path for every record/title is:

Lo trovi in > Apri la lista completa > Tutte le biblioteche.

This userscript does not seem to work good. For the third title, for example (“Holly”), it gives me 3 occurrences, instead of 13.
Furthermore I’d like the occurrences to display when I search for a single title like, for example, Le armi della luce / Follett, Ken (that has 15 occurrences), or La casa delle luci / Carrisi, Donato, that has 5 occurrences.

Thanks very much!