@crh0716 If I do the check before adding the idle observer, it turns out that the JS that reads the prefs and unhides the data-show-name span has not had time to run yet, so the code is always disabled.

Is there some way I can wait for the page to be ready without setting an idle observer? Or should I leave the code inside the idle observer as it was?