From 41ebd42722af7d4acf228d52b39fc467b4a70b55 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Tue, 20 Aug 2013 09:09:09 -0700 Subject: [PATCH] Write config option. Don't use config option. :/ --- builds/appchan-x.user.js | 2 +- builds/crx/script.js | 2 +- src/Images/Gallery.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 67de46853..f17e7f3ec 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -8818,7 +8818,7 @@ init: function() { var el; - if (g.VIEW === 'catalog' || g.BOARD === 'f') { + if (g.VIEW === 'catalog' || g.BOARD === 'f' || !Conf['Gallery']) { return; } el = $.el('a', { diff --git a/builds/crx/script.js b/builds/crx/script.js index 0cfde79c4..af47ac474 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -8806,7 +8806,7 @@ init: function() { var el; - if (g.VIEW === 'catalog' || g.BOARD === 'f') { + if (g.VIEW === 'catalog' || g.BOARD === 'f' || !Conf['Gallery']) { return; } el = $.el('a', { diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index 7abcab8ac..dcd33ad34 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -1,6 +1,6 @@ Gallery = init: -> - return if g.VIEW is 'catalog' or g.BOARD is 'f' + return if g.VIEW is 'catalog' or g.BOARD is 'f' or !Conf['Gallery'] el = $.el 'a', href: 'javascript:;'