Why not inject css instead? That would be more effective
var node = document.createElement('style');
node.innerHTML = '* { outline: 2px dotted orangered; };
document.body.appendChild(node); document.head.appendChild(document.createElement('style')).textContent = '* { outline: 2px dotted orangered'