diff --git a/LICENSE b/LICENSE index c82725bf5..8d2653a59 100644 --- a/LICENSE +++ b/LICENSE @@ -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. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 7508a1b7d..f97c76c82 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -24,7 +24,7 @@ // ==/UserScript== /* -* appchan x - Version 2.8.11 - 2014-02-16 +* appchan x - Version 2.8.11 - 2014-02-17 * * Licensed under the MIT license. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE @@ -13621,9 +13621,6 @@ Style.sheets[item[0]] = $.addStyle(item[1], item[0]); } $.addStyle(JSColor.css(), 'jsColor'); - $.asap((function() { - return d.head; - }), Style.remStyle); $.asap((function() { return d.body; }), this.asapInit); @@ -13639,6 +13636,7 @@ $.addClass(doc, 'fourchan-x'); $.addClass(doc, 'appchan-x'); $.addClass(doc, g.VIEW); + Style.remStyle(); _ref = Config.style; for (title in _ref) { cat = _ref[title]; diff --git a/builds/crx/script.js b/builds/crx/script.js index 376633765..d69259196 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // 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. * https://github.com/zixaphir/appchan-x/blob/master/LICENSE @@ -13622,9 +13622,6 @@ Style.sheets[item[0]] = $.addStyle(item[1], item[0]); } $.addStyle(JSColor.css(), 'jsColor'); - $.asap((function() { - return d.head; - }), Style.remStyle); $.asap((function() { return d.body; }), this.asapInit); @@ -13641,6 +13638,7 @@ $.addClass(doc, 'appchan-x'); $.addClass(doc, g.VIEW); $.add(d.body, Style.svgs.el); + Style.remStyle(); _ref = Config.style; for (title in _ref) { cat = _ref[title]; diff --git a/src/Theming/Style.coffee b/src/Theming/Style.coffee index 51ebf9f7c..0205d0882 100644 --- a/src/Theming/Style.coffee +++ b/src/Theming/Style.coffee @@ -25,8 +25,6 @@ Style = # Non-customizable $.addStyle JSColor.css(), 'jsColor' - $.asap (-> d.head), Style.remStyle - $.asap (-> d.body), @asapInit $.asap (-> Header.bar.parentElement), Style.padding $.on window, "resize", Style.padding @@ -46,6 +44,8 @@ Style = $.add d.body, Style.svgs.el <% } %> + Style.remStyle() + for title, cat of Config.style for name, setting of cat continue if !Conf[name] or setting[2] is 'text' or name in ['NSFW/SFW Themes', 'NSFW/SFW Mascots']