From 4040440332abaca82023e233a581be71f93779d8 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 13 May 2014 03:05:53 -0700 Subject: [PATCH] this setting should disable all the nag messages --- src/General/Config.coffee | 2 +- src/General/Main.coffee | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/General/Config.coffee b/src/General/Config.coffee index 0da2c3de0..de6a599a2 100755 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -95,7 +95,7 @@ Config = ] 'Show Support Message': [ true - 'Warn if your browser is unsupported. 4chan X may not operate correctly on unsupported browser versions.' + 'Warn if your browser or configuration is unsupported and may cause 4chan X to not operate correctly.' ] 'Linkification': diff --git a/src/General/Main.coffee b/src/General/Main.coffee index a4d32b58c..cb27a4d6a 100755 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -142,10 +142,11 @@ Main = else $.event '4chanXInitFinished' + return unless Conf['Show Support Message'] <% if (type === 'userscript') { %> test = $.el 'span' test.classList.add 'a', 'b' - if test.className isnt 'a b' and Conf['Show Support Message'] + if test.className isnt 'a b' new Notice 'warning', "Your version of Firefox is outdated (v<%= meta.min.firefox %> minimum) and <%= meta.name %> may not operate correctly.", 30 GMver = GM_info.version.split '.'