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);
22 for(var i=0;i<style.length;i++){
24 //var camel = prop.replace(/\-([a-z])/g, camelize);
25 var val = style.getPropertyValue(prop);
26 //returns[camel] = val;
27 dom.style[prop] = val;
31 var el = document.querySelector('body');
33 var matches = el.querySelectorAll('*');
34 for(var i =0;i < matches.length;i++) {
35 fillStyle(matches[i]);
37 var matches = document.getElementsByTagName('style');
38 for(var i =0;i < matches.length;i++) {
39 matches[i].parentElement.removeChild(matches[i]);