projects
/
app.webkitpdf
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab4ff0e
)
domains/remove_print_css.js
author
Alan Knowles
<alan@roojs.com>
Mon, 18 Apr 2016 08:11:54 +0000
(16:11 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 18 Apr 2016 08:11:54 +0000
(16:11 +0800)
domains/remove_print_css.js
patch
|
blob
|
history
diff --git
a/domains/remove_print_css.js
b/domains/remove_print_css.js
index
66d06bb
..
81d3261
100644
(file)
--- a/
domains/remove_print_css.js
+++ b/
domains/remove_print_css.js
@@
-8,7
+8,7
@@
console.log("sheet " + ss + '/' + document.styleSheets.length + ": " + css.ownerNode.outerHTML) ;
var node = css.ownerNode;
- ;
+
if (node.nodeName == 'STYLE' && node.getAttribute('media') && node.getAttribute('media').match(/print/)) {
node.innerHTML = '';
continue;
@@
-62,7
+62,9
@@
}
- for(i = )
+ for(i = 0; i < del.length) {
+ del[i].parentNode.removeChild(del[i]);
+ }