Skip to content

Instantly share code, notes, and snippets.

View OlivierPerceboisGarve's full-sized avatar

Olivier Percebois-Garve OlivierPerceboisGarve

View GitHub Profile
// Dump all document.styleSheets[*].cssRules[*].cssText to a div (easier to copy and paste):
(function(s,c,r,i,j){
var out = '';
for(i=0;i<s.length;i++){
c=s[i].cssRules;
for(j=0;j<c.length;j++){
r=c[j].cssText;
//console.log('document.styleSheets['+i+'].cssRules['+j+'].cssText = "'+r+'";')
out+= r+'<br>';