Play with the input values below. Note how only the inputs that initially had values are styled (green), and the styled inputs do not change as you change the values

Now, press the button to simulate the Greasemonkey code running. Then, observe how the styling changes as the input values become empty, or not.