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) ->