Let's just remove the nodes. Seems to fix a catalog bug in Chrome.

This commit is contained in:
Zixaphir 2013-10-28 02:06:10 -07:00
parent 0224a5c0cc
commit 26fc5d81b7
4 changed files with 9 additions and 11 deletions

View File

@ -1,5 +1,5 @@
/*
* appchan x - Version 2.5.1 - 2013-10-20
* appchan x - Version 2.5.1 - 2013-10-28
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE

View File

@ -20,7 +20,7 @@
// ==/UserScript==
/*
* appchan x - Version 2.5.1 - 2013-10-20
* appchan x - Version 2.5.1 - 2013-10-28
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -12688,10 +12688,9 @@
i = addedNodes.length;
while (i--) {
node = addedNodes[i];
if (node.nodeName === 'STYLE' && node.id || !['LINK', 'STYLE'].contains(node.nodeName) || node.rel && (!/stylesheet/.test(node.rel) || /flags.*\.css$/.test(href = node.href) || href.slice(0, 4) === 'data') || /\.typeset/.test(node.textContent)) {
continue;
if (!(node.nodeName === 'STYLE' && node.id || !['LINK', 'STYLE'].contains(node.nodeName) || node.rel && (!/stylesheet/.test(node.rel) || /flags.*\.css$/.test(href = node.href) || href.slice(0, 4) === 'data') || /\.typeset/.test(node.textContent))) {
$.rm(node);
}
node.disabled = true;
}
},
matrix: function() {

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript
/*
* appchan x - Version 2.5.1 - 2013-10-20
* appchan x - Version 2.5.1 - 2013-10-28
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -12684,10 +12684,9 @@
i = addedNodes.length;
while (i--) {
node = addedNodes[i];
if (node.nodeName === 'STYLE' && node.id || !['LINK', 'STYLE'].contains(node.nodeName) || node.rel && (!/stylesheet/.test(node.rel) || /flags.*\.css$/.test(href = node.href) || href.slice(0, 4) === 'data') || /\.typeset/.test(node.textContent)) {
continue;
if (!(node.nodeName === 'STYLE' && node.id || !['LINK', 'STYLE'].contains(node.nodeName) || node.rel && (!/stylesheet/.test(node.rel) || /flags.*\.css$/.test(href = node.href) || href.slice(0, 4) === 'data') || /\.typeset/.test(node.textContent))) {
$.rm(node);
}
node.disabled = true;
}
},
matrix: function() {

View File

@ -86,11 +86,11 @@ Style =
while i--
node = addedNodes[i]
continue if node.nodeName is 'STYLE' and node.id or
$.rm node unless node.nodeName is 'STYLE' and node.id or
!['LINK', 'STYLE'].contains(node.nodeName) or
node.rel and ((!/stylesheet/.test(node.rel) or /flags.*\.css$/.test(href = node.href) or href[..3] is 'data')) or
/\.typeset/.test node.textContent
node.disabled = true
return
matrix: ->