From 974197afdf3e762c4fe402ab002094ba18b741b7 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Thu, 23 May 2013 14:12:43 -0700 Subject: [PATCH] Yeah, I'm sick of this shit. Fixed. --- builds/4chan-X.js | 3 +-- builds/4chan-X.user.js | 3 +-- builds/crx/script.js | 3 +-- src/General/Main.coffee | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/builds/4chan-X.js b/builds/4chan-X.js index af1c96010..2168cc7be 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -10112,11 +10112,10 @@ } Conf['selectedArchives'] = {}; $.get(Conf, Main.initFeatures); - $.on(d, '4chanMainInit', Main.initStyle); return $.asap((function() { var _ref; - return d.head && $('link[rel="shortcut icon"]', d.head) || ((_ref = d.readyState) === 'interactive' || _ref === 'complete'); + return d.head && $('link[rel="canonical"]', 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 2cb5d67f5..939538e94 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -10123,11 +10123,10 @@ } Conf['selectedArchives'] = {}; $.get(Conf, Main.initFeatures); - $.on(d, '4chanMainInit', Main.initStyle); return $.asap((function() { var _ref; - return d.head && $('link[rel="shortcut icon"]', d.head) || ((_ref = d.readyState) === 'interactive' || _ref === 'complete'); + return d.head && $('link[rel="canonical"]', 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 43f52827f..7a77ea9db 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -10104,11 +10104,10 @@ } Conf['selectedArchives'] = {}; $.get(Conf, Main.initFeatures); - $.on(d, '4chanMainInit', Main.initStyle); return $.asap((function() { var _ref; - return d.head && $('link[rel="shortcut icon"]', d.head) || ((_ref = d.readyState) === 'interactive' || _ref === 'complete'); + return d.head && $('link[rel="canonical"]', 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 8c66f027d..76150ac8e 100644 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -18,8 +18,7 @@ Main = $.get Conf, Main.initFeatures - $.on d, '4chanMainInit', Main.initStyle - $.asap (-> d.head and $('link[rel="shortcut icon"]', d.head) or d.readyState in ['interactive', 'complete']), + $.asap (-> d.head and $('link[rel="canonical"]', d.head) or d.readyState in ['interactive', 'complete']), Main.initStyle initFeatures: (items) ->