From 6bdc8e59db6e761c5a98d9dba6db8de8fbc6fd22 Mon Sep 17 00:00:00 2001 From: Jordan Bates Date: Wed, 15 May 2013 12:01:14 -0700 Subject: [PATCH] Revert Mayhem's initStyle changes Oddly enough, though he did this to fix the wrong color scheme showing, in this fork it CREATED that bug. --- builds/4chan-X.js | 2 +- builds/4chan-X.user.js | 2 +- builds/crx/script.js | 2 +- src/General/Main.coffee | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/builds/4chan-X.js b/builds/4chan-X.js index cd6d9dc52..5506d9cdc 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -10058,7 +10058,7 @@ return $.asap((function() { var _ref; - return d.head && $('title', d.head) || ((_ref = d.readyState) === 'interactive' || _ref === 'complete'); + return d.head && $('link[rel="shortcut icon"]', d.head) || ((_ref = d.readyState) === 'interactive' || _ref === 'complete'); }), Main.initStyle); }, initFeatures: function(items) { diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 9fe80ec95..9dcd3641d 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -10069,7 +10069,7 @@ return $.asap((function() { var _ref; - return d.head && $('title', d.head) || ((_ref = d.readyState) === 'interactive' || _ref === 'complete'); + return d.head && $('link[rel="shortcut icon"]', d.head) || ((_ref = d.readyState) === 'interactive' || _ref === 'complete'); }), Main.initStyle); }, initFeatures: function(items) { diff --git a/builds/crx/script.js b/builds/crx/script.js index 9b4b6160d..34a4e8996 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -10050,7 +10050,7 @@ return $.asap((function() { var _ref; - return d.head && $('title', d.head) || ((_ref = d.readyState) === 'interactive' || _ref === 'complete'); + return d.head && $('link[rel="shortcut icon"]', d.head) || ((_ref = d.readyState) === 'interactive' || _ref === 'complete'); }), Main.initStyle); }, initFeatures: function(items) { diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 00ff00352..82e9c7a37 100644 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -19,7 +19,7 @@ Main = $.get Conf, Main.initFeatures $.on d, '4chanMainInit', Main.initStyle - $.asap (-> d.head and $('title', d.head) or d.readyState in ['interactive', 'complete']), + $.asap (-> d.head and $('link[rel="shortcut icon"]', d.head) or d.readyState in ['interactive', 'complete']), Main.initStyle initFeatures: (items) ->