diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 9c5c46774..c26490ed7 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -15611,7 +15611,9 @@ el: el, order: 95 }); - return $.on(d, '4chanXInitFinished', function() { + return $.asap((function() { + return $.id('boardNavDesktopFoot'); + }), function() { return CatalogLinks.set(Conf['Header catalog links']); }); }, diff --git a/builds/crx/script.js b/builds/crx/script.js index 692123a41..3980758b3 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -15626,7 +15626,9 @@ el: el, order: 95 }); - return $.on(d, '4chanXInitFinished', function() { + return $.asap((function() { + return $.id('boardNavDesktopFoot'); + }), function() { return CatalogLinks.set(Conf['Header catalog links']); }); }, diff --git a/src/Miscellaneous/CatalogLinks.coffee b/src/Miscellaneous/CatalogLinks.coffee index 3479fdc98..a62a4ec6b 100755 --- a/src/Miscellaneous/CatalogLinks.coffee +++ b/src/Miscellaneous/CatalogLinks.coffee @@ -14,7 +14,7 @@ CatalogLinks = el: el order: 95 - $.on d, '4chanXInitFinished', -> + $.asap (-> $.id 'boardNavDesktopFoot' ), -> # Set links on load. CatalogLinks.set Conf['Header catalog links']