Mostly Firefox fixes
Changing lines mask