projects
/
app.webkitpdf
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6d6cb84
)
domains/remove_print_css.js
author
Alan Knowles
<alan@roojs.com>
Fri, 13 Jul 2018 03:52:07 +0000
(11:52 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 13 Jul 2018 03:52:07 +0000
(11:52 +0800)
domains/remove_print_css.js
patch
|
blob
|
history
diff --git
a/domains/remove_print_css.js
b/domains/remove_print_css.js
index
ac136ce
..
b2e7d65
100644
(file)
--- a/
domains/remove_print_css.js
+++ b/
domains/remove_print_css.js
@@
-45,12
+45,19
@@
}
// see if getting rid of 'only' from screen works.
}
// 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;
}
continue;
}
- var str = ar[i].cssText.replace(/only\s+screen/, 'screen');
- newsheet += str +"\n";
+ newsheet += ar[i].cssText +"\n";
+
+
}
}