diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 0dc457f9c..8fd62d971 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -12144,13 +12144,7 @@ return; } node = nodes[i]; - if (node.nodeName === 'STYLE' && node.id) { - continue; - } - if (/stylesheet/.test(node.rel) && (/flags.*\.css$/.test(href = node.href) || href.slice(0, 4) === 'data')) { - continue; - } - if (/\.typeset/.test(node.textContent)) { + if (node.nodeName === 'STYLE' && node.id || (/stylesheet/.test(node.rel) && (/flags.*\.css$/.test(href = node.href) || href.slice(0, 4) === 'data')) || (/\.typeset/.test(node.textContent))) { continue; } Style.headCount--; diff --git a/builds/crx/script.js b/builds/crx/script.js index c24afbbfe..c88a11875 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -12136,13 +12136,7 @@ return; } node = nodes[i]; - if (node.nodeName === 'STYLE' && node.id) { - continue; - } - if (/stylesheet/.test(node.rel) && (/flags.*\.css$/.test(href = node.href) || href.slice(0, 4) === 'data')) { - continue; - } - if (/\.typeset/.test(node.textContent)) { + if (node.nodeName === 'STYLE' && node.id || (/stylesheet/.test(node.rel) && (/flags.*\.css$/.test(href = node.href) || href.slice(0, 4) === 'data')) || (/\.typeset/.test(node.textContent))) { continue; } Style.headCount--; diff --git a/src/Theming/Style.coffee b/src/Theming/Style.coffee index 867997412..3e653eee2 100644 --- a/src/Theming/Style.coffee +++ b/src/Theming/Style.coffee @@ -114,9 +114,9 @@ Style = return unless Style.headCount node = nodes[i] - continue if node.nodeName is 'STYLE' and node.id - or (/stylesheet/.test(node.rel) and (/flags.*\.css$/.test(href = node.href) or href[..3] is 'data')) - or (/\.typeset/.test node.textContent) + continue if node.nodeName is 'STYLE' and node.id or + (/stylesheet/.test(node.rel) and (/flags.*\.css$/.test(href = node.href) or href[..3] is 'data')) or + (/\.typeset/.test node.textContent) Style.headCount-- $.rm node