Thread:Extension talk:Cite/Number of references/reply (4)

the little snippet above can do it, if you replace "if num > 0" with "if (num == 0)" or simply "if (! num)", and the action should be something like "$('ol.references').closest('h2').toggle(false)" or something similar.

peace.