This commit is contained in:
Zixaphir 2014-02-17 07:33:32 -07:00
parent 0b65c2af56
commit 0d7668472f
4 changed files with 7 additions and 11 deletions

View File

@ -1,5 +1,5 @@
/* /*
* appchan x - Version 2.8.11 - 2014-02-16 * appchan x - Version 2.8.11 - 2014-02-17
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE * https://github.com/zixaphir/appchan-x/blob/master/LICENSE

View File

@ -24,7 +24,7 @@
// ==/UserScript== // ==/UserScript==
/* /*
* appchan x - Version 2.8.11 - 2014-02-16 * appchan x - Version 2.8.11 - 2014-02-17
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE * https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -13621,9 +13621,6 @@
Style.sheets[item[0]] = $.addStyle(item[1], item[0]); Style.sheets[item[0]] = $.addStyle(item[1], item[0]);
} }
$.addStyle(JSColor.css(), 'jsColor'); $.addStyle(JSColor.css(), 'jsColor');
$.asap((function() {
return d.head;
}), Style.remStyle);
$.asap((function() { $.asap((function() {
return d.body; return d.body;
}), this.asapInit); }), this.asapInit);
@ -13639,6 +13636,7 @@
$.addClass(doc, 'fourchan-x'); $.addClass(doc, 'fourchan-x');
$.addClass(doc, 'appchan-x'); $.addClass(doc, 'appchan-x');
$.addClass(doc, g.VIEW); $.addClass(doc, g.VIEW);
Style.remStyle();
_ref = Config.style; _ref = Config.style;
for (title in _ref) { for (title in _ref) {
cat = _ref[title]; cat = _ref[title];

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript // Generated by CoffeeScript
/* /*
* appchan x - Version 2.8.11 - 2014-02-16 * appchan x - Version 2.8.11 - 2014-02-17
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE * https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -13622,9 +13622,6 @@
Style.sheets[item[0]] = $.addStyle(item[1], item[0]); Style.sheets[item[0]] = $.addStyle(item[1], item[0]);
} }
$.addStyle(JSColor.css(), 'jsColor'); $.addStyle(JSColor.css(), 'jsColor');
$.asap((function() {
return d.head;
}), Style.remStyle);
$.asap((function() { $.asap((function() {
return d.body; return d.body;
}), this.asapInit); }), this.asapInit);
@ -13641,6 +13638,7 @@
$.addClass(doc, 'appchan-x'); $.addClass(doc, 'appchan-x');
$.addClass(doc, g.VIEW); $.addClass(doc, g.VIEW);
$.add(d.body, Style.svgs.el); $.add(d.body, Style.svgs.el);
Style.remStyle();
_ref = Config.style; _ref = Config.style;
for (title in _ref) { for (title in _ref) {
cat = _ref[title]; cat = _ref[title];

View File

@ -25,8 +25,6 @@ Style =
# Non-customizable # Non-customizable
$.addStyle JSColor.css(), 'jsColor' $.addStyle JSColor.css(), 'jsColor'
$.asap (-> d.head), Style.remStyle
$.asap (-> d.body), @asapInit $.asap (-> d.body), @asapInit
$.asap (-> Header.bar.parentElement), Style.padding $.asap (-> Header.bar.parentElement), Style.padding
$.on window, "resize", Style.padding $.on window, "resize", Style.padding
@ -46,6 +44,8 @@ Style =
$.add d.body, Style.svgs.el $.add d.body, Style.svgs.el
<% } %> <% } %>
Style.remStyle()
for title, cat of Config.style for title, cat of Config.style
for name, setting of cat for name, setting of cat
continue if !Conf[name] or setting[2] is 'text' or name in ['NSFW/SFW Themes', 'NSFW/SFW Mascots'] continue if !Conf[name] or setting[2] is 'text' or name in ['NSFW/SFW Themes', 'NSFW/SFW Mascots']