Created
November 2, 2012 00:02
-
-
Save jsmaker/3997730 to your computer and use it in GitHub Desktop.
style from doc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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