How to set style with important flag - kdaisho/Blog GitHub Wiki
If you do this,
element.style.display = 'none ! important';
Not going to work. But if you write this way,
element.style.setProperty('display', 'none', 'important');
It should work but IE9<.