/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(function (all, el, i, l) { for (i = 0, l = all.length; i < l && el = all[i]; ++i) { if (/style/i.test(el.nodeName) || (/link/i.test(el.nodeName) && 'stylesheet' === el.getAttribute('rel'))) { el.parentNode.removeChild(el); --l; } else if (null !== el.getAttribute('style')) { el.removeAttribute('style'); } } })(document.all || document.getElementsByTagName('*'))