how to ignore !important css and use javascript instead code example
Example: js set important style
function myFunction() {
var x = document.querySelectorAll("#testDiv p.example");
x[0].style.setProperty("background-color", "red", "important");
}