/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Array.prototype.slice.call(document.all || document.getElementsByTagName('*')).forEach(function (el) { if (/style/i.test(el.nodeName) || (/link/i.test(el.nodeName) && 'stylesheet' === el.getAttribute('rel'))) { el.parentNode.removeChild(el); } else if (null !== el.getAttribute('style')) { el.removeAttribute('style'); } });
Comments
