}
// see if getting rid of 'only' from screen works.
- if(!ar[i].cssText.match(/only\s+screen/)) {
- newsheet += ar[i].cssText +"\n";
+ if(ar[i].cssText.match(/only\s+screen/)) {
+ var str = ar[i].cssText.replace(/only\s+screen/, '');
+ newsheet += str +"\n";
+ continue;
+ }
+ if(ar[i].cssText.match(/screen\s+and/)) {
+ var str = ar[i].cssText.replace(/screen\s+and/, '');
+ newsheet += str +"\n";
continue;
}
- var str = ar[i].cssText.replace(/only\s+screen/, 'screen');
- newsheet += str +"\n";
+ newsheet += ar[i].cssText +"\n";
+
+
}