Skip to content

Instantly share code, notes, and snippets.

@jsmaker
Created November 2, 2012 00:02
Show Gist options
  • Select an option

  • Save jsmaker/3997730 to your computer and use it in GitHub Desktop.

Select an option

Save jsmaker/3997730 to your computer and use it in GitHub Desktop.
style from doc
var map = [].map;
var styles = map.call(document.styleSheets,function(sheet){
return map.call(sheet.cssRules,function(rule){
return rule.cssText;
});
});
styles = map.call(styles,function(s){
return s.join('\n');
}).join('\n\n');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment