hide inactive tabs

enable extension on local files
fix hide inactive tabs (caused by conflict of events)
fix bug (only one entry) and others

others
hide inactive tag properly
clear container
cleanup superscript text in the headword entry
toggle the definition details

cleanup