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;
|
||||
}
|
||||
node = nodes[i];
|
||||
if ((node.nodeName === 'STYLE' && !node.id) || (("" + node.rel).contains('stylesheet') && !/flags.*\.css$/.test(href = node.href) && href.slice(0, 4) !== 'data')) {
|
||||
Style.headCount--;
|
||||
$.rm(node);
|
||||
if (!(node.nodeName === 'STYLE' && !node.id)) {
|
||||
continue;
|
||||
}
|
||||
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) {
|
||||
|
||||
@ -12136,10 +12136,17 @@
|
||||
return;
|
||||
}
|
||||
node = nodes[i];
|
||||
if ((node.nodeName === 'STYLE' && !node.id) || (("" + node.rel).contains('stylesheet') && !/flags.*\.css$/.test(href = node.href) && href.slice(0, 4) !== 'data')) {
|
||||
Style.headCount--;
|
||||
$.rm(node);
|
||||
if (!(node.nodeName === 'STYLE' && !node.id)) {
|
||||
continue;
|
||||
}
|
||||
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) {
|
||||
|
||||
@ -113,9 +113,13 @@ Style =
|
||||
while i--
|
||||
return unless Style.headCount
|
||||
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--
|
||||
$.rm node
|
||||
|
||||
continue unless node.nodeName is 'STYLE' and !node.id
|
||||
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
|
||||
|
||||
matrix: (foreground, background) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user