From f91702b98432a04f946011ccc57f0bd1060ae353 Mon Sep 17 00:00:00 2001 From: Jordan Bates Date: Wed, 15 May 2013 06:11:01 -0700 Subject: [PATCH] Option affects lack of captcha warning as well --- builds/4chan-X.js | 6 +++--- builds/4chan-X.user.js | 6 +++--- builds/crx/script.js | 6 +++--- src/General/Config.coffee | 2 +- src/Posting/QuickReply.coffee | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/builds/4chan-X.js b/builds/4chan-X.js index f7596fadd..7241b6e57 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -198,7 +198,7 @@ 'Cooldown': [true, 'Indicate the remaining time before posting again.'], 'Cooldown Prediction': [true, 'Decrease the cooldown time by taking into account upload speed. Disable it if it\'s inaccurate for you.'], 'Posting Success Notifications': [true, 'Show notifications on successful post creation or file uploading.'], - 'Mistyped Captcha Errors': [true, 'When disabled, shows a red border on the CAPTCHA input until a key is pressed instead of a notification.'] + 'Captcha Warning Notifications': [true, 'When disabled, shows a red border on the CAPTCHA input until a key is pressed instead of a notification.'] }, 'Quote Links': { 'Quote Backlinks': [true, 'Add quote backlinks.'], @@ -4744,7 +4744,7 @@ QR.cleanNotifications(); d.activeElement.blur(); $.rmClass(QR.nodes.el, 'dump'); - if (!Conf['Mistyped Captcha Errors']) { + if (!Conf['Captcha Warning Notifications']) { $.rmClass(QR.captcha.nodes.input, 'error'); } if (Conf['QR Shortcut']) { @@ -4792,7 +4792,7 @@ } if (QR.captcha.isEnabled && /captcha|verification/i.test(el.textContent)) { QR.captcha.nodes.input.focus(); - if (Conf['Mistyped Captcha Errors']) { + if (Conf['Captcha Warning Notifications']) { QR.notifications.push(new Notification('warning', el)); } else { $.addClass(QR.captcha.nodes.input, 'error'); diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 7fa996a56..ad9c6fc31 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -199,7 +199,7 @@ 'Cooldown': [true, 'Indicate the remaining time before posting again.'], 'Cooldown Prediction': [true, 'Decrease the cooldown time by taking into account upload speed. Disable it if it\'s inaccurate for you.'], 'Posting Success Notifications': [true, 'Show notifications on successful post creation or file uploading.'], - 'Mistyped Captcha Errors': [true, 'When disabled, shows a red border on the CAPTCHA input until a key is pressed instead of a notification.'] + 'Captcha Warning Notifications': [true, 'When disabled, shows a red border on the CAPTCHA input until a key is pressed instead of a notification.'] }, 'Quote Links': { 'Quote Backlinks': [true, 'Add quote backlinks.'], @@ -4728,7 +4728,7 @@ QR.cleanNotifications(); d.activeElement.blur(); $.rmClass(QR.nodes.el, 'dump'); - if (!Conf['Mistyped Captcha Errors']) { + if (!Conf['Captcha Warning Notifications']) { $.rmClass(QR.captcha.nodes.input, 'error'); } if (Conf['QR Shortcut']) { @@ -4776,7 +4776,7 @@ } if (QR.captcha.isEnabled && /captcha|verification/i.test(el.textContent)) { QR.captcha.nodes.input.focus(); - if (Conf['Mistyped Captcha Errors']) { + if (Conf['Captcha Warning Notifications']) { QR.notifications.push(new Notification('warning', el)); } else { $.addClass(QR.captcha.nodes.input, 'error'); diff --git a/builds/crx/script.js b/builds/crx/script.js index 731cde445..62cec07cd 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -180,7 +180,7 @@ 'Cooldown': [true, 'Indicate the remaining time before posting again.'], 'Cooldown Prediction': [true, 'Decrease the cooldown time by taking into account upload speed. Disable it if it\'s inaccurate for you.'], 'Posting Success Notifications': [true, 'Show notifications on successful post creation or file uploading.'], - 'Mistyped Captcha Errors': [true, 'When disabled, shows a red border on the CAPTCHA input until a key is pressed instead of a notification.'] + 'Captcha Warning Notifications': [true, 'When disabled, shows a red border on the CAPTCHA input until a key is pressed instead of a notification.'] }, 'Quote Links': { 'Quote Backlinks': [true, 'Add quote backlinks.'], @@ -4731,7 +4731,7 @@ QR.cleanNotifications(); d.activeElement.blur(); $.rmClass(QR.nodes.el, 'dump'); - if (!Conf['Mistyped Captcha Errors']) { + if (!Conf['Captcha Warning Notifications']) { $.rmClass(QR.captcha.nodes.input, 'error'); } if (Conf['QR Shortcut']) { @@ -4779,7 +4779,7 @@ } if (QR.captcha.isEnabled && /captcha|verification/i.test(el.textContent)) { QR.captcha.nodes.input.focus(); - if (Conf['Mistyped Captcha Errors']) { + if (Conf['Captcha Warning Notifications']) { QR.notifications.push(new Notification('warning', el)); } else { $.addClass(QR.captcha.nodes.input, 'error'); diff --git a/src/General/Config.coffee b/src/General/Config.coffee index 977ce058b..6a8be3c12 100644 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -293,7 +293,7 @@ Config = true 'Show notifications on successful post creation or file uploading.' ] - 'Mistyped Captcha Errors': [ + 'Captcha Warning Notifications': [ true 'When disabled, shows a red border on the CAPTCHA input until a key is pressed instead of a notification.' ] diff --git a/src/Posting/QuickReply.coffee b/src/Posting/QuickReply.coffee index 55d43d5da..4754f7afc 100644 --- a/src/Posting/QuickReply.coffee +++ b/src/Posting/QuickReply.coffee @@ -93,7 +93,7 @@ QR = QR.cleanNotifications() d.activeElement.blur() $.rmClass QR.nodes.el, 'dump' - unless Conf['Mistyped Captcha Errors'] + unless Conf['Captcha Warning Notifications'] $.rmClass QR.captcha.nodes.input, 'error' if Conf['QR Shortcut'] $.toggleClass $('.qr-shortcut'), 'disabled' @@ -128,7 +128,7 @@ QR = if QR.captcha.isEnabled and /captcha|verification/i.test el.textContent # Focus the captcha input on captcha error. QR.captcha.nodes.input.focus() - if Conf['Mistyped Captcha Errors'] + if Conf['Captcha Warning Notifications'] QR.notifications.push new Notification 'warning', el else $.addClass QR.captcha.nodes.input, 'error'