More or less fix #373
Some parts will be discolored. Not really my fault.
This commit is contained in:
parent
162f125e43
commit
6a7f1cfe0b
@ -12144,10 +12144,17 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
node = nodes[i];
|
node = nodes[i];
|
||||||
if ((node.nodeName === 'STYLE' && !node.id) || (("" + node.rel).contains('stylesheet') && !/flags.*\.css$/.test(href = node.href) && href.slice(0, 4) !== 'data')) {
|
if (!(node.nodeName === 'STYLE' && !node.id)) {
|
||||||
Style.headCount--;
|
continue;
|
||||||
$.rm(node);
|
|
||||||
}
|
}
|
||||||
|
if (("" + node.rel).contains('stylesheet') && (/flags.*\.css$/.test(href = node.href) || href.slice(0, 4) === 'data')) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (/\b(\.typeset)/.test(node.textContent)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
Style.headCount--;
|
||||||
|
$.rm(node);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
matrix: function(foreground, background) {
|
matrix: function(foreground, background) {
|
||||||
|
|||||||
@ -12136,10 +12136,17 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
node = nodes[i];
|
node = nodes[i];
|
||||||
if ((node.nodeName === 'STYLE' && !node.id) || (("" + node.rel).contains('stylesheet') && !/flags.*\.css$/.test(href = node.href) && href.slice(0, 4) !== 'data')) {
|
if (!(node.nodeName === 'STYLE' && !node.id)) {
|
||||||
Style.headCount--;
|
continue;
|
||||||
$.rm(node);
|
|
||||||
}
|
}
|
||||||
|
if (("" + node.rel).contains('stylesheet') && (/flags.*\.css$/.test(href = node.href) || href.slice(0, 4) === 'data')) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (/\b(\.typeset)/.test(node.textContent)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
Style.headCount--;
|
||||||
|
$.rm(node);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
matrix: function(foreground, background) {
|
matrix: function(foreground, background) {
|
||||||
|
|||||||
@ -113,9 +113,13 @@ Style =
|
|||||||
while i--
|
while i--
|
||||||
return unless Style.headCount
|
return unless Style.headCount
|
||||||
node = nodes[i]
|
node = nodes[i]
|
||||||
if (node.nodeName is 'STYLE' and !node.id) or ("#{node.rel}".contains('stylesheet') and !/flags.*\.css$/.test(href = node.href) and href[..3] isnt 'data')
|
|
||||||
Style.headCount--
|
continue unless node.nodeName is 'STYLE' and !node.id
|
||||||
$.rm node
|
continue if "#{node.rel}".contains('stylesheet') and (/flags.*\.css$/.test(href = node.href) or href[..3] is 'data')
|
||||||
|
continue if /\b(\.typeset)/.test node.textContent
|
||||||
|
|
||||||
|
Style.headCount--
|
||||||
|
$.rm node
|
||||||
return
|
return
|
||||||
|
|
||||||
matrix: (foreground, background) ->
|
matrix: (foreground, background) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user