diff --git a/builds/appchan-x.js b/builds/appchan-x.js index aaabe6f31..8bda71823 100644 --- a/builds/appchan-x.js +++ b/builds/appchan-x.js @@ -10934,10 +10934,9 @@ el = this.el; if (!Conf['Mascots'] || (Conf['Hide Mascots on Catalog'] && g.VIEW === 'catalog')) { if (el) { - return el.src = ""; - } else { - return null; + el.src = ""; } + return; } if (mascot.position === 'bottom' && Conf['Mascot Position'] === 'default') { $.rmClass(doc, 'mascot-position-default'); diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 1ffecc4ec..6536162aa 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -10928,10 +10928,9 @@ el = this.el; if (!Conf['Mascots'] || (Conf['Hide Mascots on Catalog'] && g.VIEW === 'catalog')) { if (el) { - return el.src = ""; - } else { - return null; + el.src = ""; } + return; } if (mascot.position === 'bottom' && Conf['Mascot Position'] === 'default') { $.rmClass(doc, 'mascot-position-default'); diff --git a/builds/crx/script.js b/builds/crx/script.js index ca9cff747..0452b2976 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -10911,10 +10911,9 @@ el = this.el; if (!Conf['Mascots'] || (Conf['Hide Mascots on Catalog'] && g.VIEW === 'catalog')) { if (el) { - return el.src = ""; - } else { - return null; + el.src = ""; } + return; } if (mascot.position === 'bottom' && Conf['Mascot Position'] === 'default') { $.rmClass(doc, 'mascot-position-default'); diff --git a/src/Theming/Mascots.coffee b/src/Theming/Mascots.coffee index a74f69302..830ab7386 100644 --- a/src/Theming/Mascots.coffee +++ b/src/Theming/Mascots.coffee @@ -12,7 +12,8 @@ MascotTools = el = @el if !Conf['Mascots'] or (Conf['Hide Mascots on Catalog'] and g.VIEW is 'catalog') - return if el then el.src = "" else null + if el then el.src = "" + return if mascot.position is 'bottom' and Conf['Mascot Position'] is 'default' $.rmClass doc, 'mascot-position-default'