6 //var camelize = function(a,b){
7 // return b.toUpperCase();
10 var fillStyle = function(dom)
17 style = window.getComputedStyle(dom, null);
18 if (style.display == 'none') {
19 dom.parentElement.removeChild(dom);
23 for(var i=0;i<style.length;i++){
25 //var camel = prop.replace(/\-([a-z])/g, camelize);
26 var val = style.getPropertyValue(prop);
27 //returns[camel] = val;
28 dom.style[prop] = val;
30 for (var i = dom.childNodes.length -1; i--; i> -1) {
31 fillStyle(dom.childNodes[i]);
37 var el = document.querySelector('body');
39 var matches = el.querySelectorAll('*');
40 for(var i =0;i < matches.length;i++) {
41 fillStyle(matches[i]);
43 var matches = document.getElementsByTagName('style');
44 for(var i =0;i < matches.length;i++) {
45 matches[i].parentElement.removeChild(matches[i]);