Fix flags on /sp/.

This commit is contained in:
Zixaphir 2013-07-05 11:03:55 -07:00
parent cf6c3cfd75
commit 80b60dfa84
4 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
/*
* appchan x - Version 2.1.3 - 2013-07-04
* appchan x - Version 2.1.3 - 2013-07-05
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE

View File

@ -18,7 +18,7 @@
// ==/UserScript==
/*
* appchan x - Version 2.1.3 - 2013-07-04
* appchan x - Version 2.1.3 - 2013-07-05
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -11488,7 +11488,7 @@
},
headCount: 12,
remStyle: function() {
var i, node, nodes;
var href, i, node, nodes;
nodes = d.head.children;
i = nodes.length;
@ -11497,7 +11497,7 @@
return;
}
node = nodes[i];
if ((node.nodeName === 'STYLE' && !node.id) || (("" + node.rel).contains('stylesheet') && node.href.slice(0, 4) !== 'data')) {
if ((node.nodeName === 'STYLE' && !node.id) || (("" + node.rel).contains('stylesheet') && !/static\.4chan\.org\/css\/flags\.507\.css/.test(href = node.href) && href.slice(0, 4) !== 'data')) {
Style.headCount--;
$.rm(node);
}

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript
/*
* appchan x - Version 2.1.3 - 2013-07-04
* appchan x - Version 2.1.3 - 2013-07-05
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -11477,7 +11477,7 @@
},
headCount: 12,
remStyle: function() {
var i, node, nodes;
var href, i, node, nodes;
nodes = d.head.children;
i = nodes.length;
@ -11486,7 +11486,7 @@
return;
}
node = nodes[i];
if ((node.nodeName === 'STYLE' && !node.id) || (("" + node.rel).contains('stylesheet') && node.href.slice(0, 4) !== 'data')) {
if ((node.nodeName === 'STYLE' && !node.id) || (("" + node.rel).contains('stylesheet') && !/static\.4chan\.org\/css\/flags\.507\.css/.test(href = node.href) && href.slice(0, 4) !== 'data')) {
Style.headCount--;
$.rm(node);
}

View File

@ -114,7 +114,7 @@ Style =
while i--
return unless Style.headCount
node = nodes[i]
if (node.nodeName is 'STYLE' and !node.id) or ("#{node.rel}".contains('stylesheet') and node.href[..3] isnt 'data')
if (node.nodeName is 'STYLE' and !node.id) or ("#{node.rel}".contains('stylesheet') and !/static\.4chan\.org\/css\/flags\.507\.css/.test(href = node.href) and href[..3] isnt 'data')
Style.headCount--
$.rm node
return