Add setting to load captcha when you open the thread, disabled by default
This commit is contained in:
parent
1e1afcf2e7
commit
9c5ca585ed
@ -211,7 +211,8 @@
|
|||||||
'Cooldown': [true, 'Indicate the remaining time before posting again.'],
|
'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.'],
|
'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.'],
|
'Posting Success Notifications': [true, 'Show notifications on successful post creation or file uploading.'],
|
||||||
'Captcha Warning Notifications': [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.'],
|
||||||
|
'Auto-load captcha': [false, 'Automatically load the captcha when you open a thread']
|
||||||
},
|
},
|
||||||
'Quote Links': {
|
'Quote Links': {
|
||||||
'Quote Backlinks': [true, 'Add quote backlinks.'],
|
'Quote Backlinks': [true, 'Add quote backlinks.'],
|
||||||
@ -6114,6 +6115,9 @@
|
|||||||
if (!(this.isEnabled = !!container)) {
|
if (!(this.isEnabled = !!container)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (Conf['Auto-load captcha']) {
|
||||||
|
$.globalEval('loadRecaptcha()');
|
||||||
|
}
|
||||||
imgContainer = $.el('div', {
|
imgContainer = $.el('div', {
|
||||||
className: 'captcha-img',
|
className: 'captcha-img',
|
||||||
title: 'Reload reCAPTCHA',
|
title: 'Reload reCAPTCHA',
|
||||||
|
|||||||
BIN
builds/crx.crx
BIN
builds/crx.crx
Binary file not shown.
@ -189,7 +189,8 @@
|
|||||||
'Cooldown': [true, 'Indicate the remaining time before posting again.'],
|
'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.'],
|
'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.'],
|
'Posting Success Notifications': [true, 'Show notifications on successful post creation or file uploading.'],
|
||||||
'Captcha Warning Notifications': [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.'],
|
||||||
|
'Auto-load captcha': [false, 'Automatically load the captcha when you open a thread']
|
||||||
},
|
},
|
||||||
'Quote Links': {
|
'Quote Links': {
|
||||||
'Quote Backlinks': [true, 'Add quote backlinks.'],
|
'Quote Backlinks': [true, 'Add quote backlinks.'],
|
||||||
@ -6116,6 +6117,9 @@
|
|||||||
if (!(this.isEnabled = !!container)) {
|
if (!(this.isEnabled = !!container)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (Conf['Auto-load captcha']) {
|
||||||
|
$.globalEval('loadRecaptcha()');
|
||||||
|
}
|
||||||
imgContainer = $.el('div', {
|
imgContainer = $.el('div', {
|
||||||
className: 'captcha-img',
|
className: 'captcha-img',
|
||||||
title: 'Reload reCAPTCHA',
|
title: 'Reload reCAPTCHA',
|
||||||
|
|||||||
@ -313,6 +313,10 @@ Config =
|
|||||||
true
|
true
|
||||||
'When disabled, shows a red border on the CAPTCHA input until a key is pressed instead of a notification.'
|
'When disabled, shows a red border on the CAPTCHA input until a key is pressed instead of a notification.'
|
||||||
]
|
]
|
||||||
|
'Auto-load captcha': [
|
||||||
|
false
|
||||||
|
'Automatically load the captcha when you open a thread'
|
||||||
|
]
|
||||||
|
|
||||||
'Quote Links':
|
'Quote Links':
|
||||||
'Quote Backlinks': [
|
'Quote Backlinks': [
|
||||||
|
|||||||
@ -4,6 +4,8 @@ QR.captcha =
|
|||||||
container = $.id 'captchaContainer'
|
container = $.id 'captchaContainer'
|
||||||
return unless @isEnabled = !!container
|
return unless @isEnabled = !!container
|
||||||
|
|
||||||
|
$.globalEval 'loadRecaptcha()' if Conf['Auto-load captcha']
|
||||||
|
|
||||||
imgContainer = $.el 'div',
|
imgContainer = $.el 'div',
|
||||||
className: 'captcha-img'
|
className: 'captcha-img'
|
||||||
title: 'Reload reCAPTCHA'
|
title: 'Reload reCAPTCHA'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user