Finally make the Captcha Filter into an option
I'm fairly certain I've "fixed" the invisible captcha issue, but for whatever reason, someone might just not want a filter.
This commit is contained in:
parent
69f3ef7aa9
commit
0f1ab5c5a5
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -723,6 +723,10 @@ Config =
|
|||||||
true
|
true
|
||||||
'Images expand over the post form and sidebar content, usually used with "Expand images" set to "full".'
|
'Images expand over the post form and sidebar content, usually used with "Expand images" set to "full".'
|
||||||
]
|
]
|
||||||
|
'Captcha Filter': [
|
||||||
|
true
|
||||||
|
'Apply an SVG filter to the captcha to make it match your theme. WARNING: May cause invisible captchas.'
|
||||||
|
]
|
||||||
|
|
||||||
Indicators:
|
Indicators:
|
||||||
'Emoji': [
|
'Emoji': [
|
||||||
|
|||||||
@ -1586,10 +1586,11 @@ input:checked + .rice {
|
|||||||
.textarea-resize-none #qr textarea {
|
.textarea-resize-none #qr textarea {
|
||||||
resize: none;
|
resize: none;
|
||||||
}
|
}
|
||||||
.captcha-img {
|
.captcha-img div {
|
||||||
margin: 1px 0 0;
|
margin: 1px 0 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
.captcha-img img {
|
.captcha-img img {
|
||||||
width: 246px;
|
width: 246px;
|
||||||
|
|||||||
@ -52,7 +52,7 @@ html {
|
|||||||
background: #{backgroundC};
|
background: #{backgroundC};
|
||||||
border-color: #{theme["Reply Border"]};
|
border-color: #{theme["Reply Border"]};
|
||||||
}
|
}
|
||||||
.captcha-img img {
|
.captcha-filter .captcha-img div {
|
||||||
<%= filter %>: url('<% if (type === 'userscript') { %>data:image/svg+xml,#{Style.svgs.captchafilter.replace /(\'|\")/g, '%22'}<% } %>#captcha-filter');
|
<%= filter %>: url('<% if (type === 'userscript') { %>data:image/svg+xml,#{Style.svgs.captchafilter.replace /(\'|\")/g, '%22'}<% } %>#captcha-filter');
|
||||||
}
|
}
|
||||||
.silhouettize-mascots #mascot img,
|
.silhouettize-mascots #mascot img,
|
||||||
|
|||||||
@ -13,7 +13,7 @@ QR.captcha =
|
|||||||
imgContainer = $.el 'div',
|
imgContainer = $.el 'div',
|
||||||
className: 'captcha-img'
|
className: 'captcha-img'
|
||||||
title: 'Reload reCAPTCHA'
|
title: 'Reload reCAPTCHA'
|
||||||
innerHTML: '<img>'
|
innerHTML: '<div><img></div>'
|
||||||
input = $.el 'input',
|
input = $.el 'input',
|
||||||
className: 'captcha-input field'
|
className: 'captcha-input field'
|
||||||
title: 'Verification'
|
title: 'Verification'
|
||||||
@ -22,7 +22,7 @@ QR.captcha =
|
|||||||
tabIndex: 45
|
tabIndex: 45
|
||||||
@nodes =
|
@nodes =
|
||||||
challenge: $.id 'recaptcha_challenge_field_holder'
|
challenge: $.id 'recaptcha_challenge_field_holder'
|
||||||
img: imgContainer.firstChild
|
img: $ 'img', imgContainer
|
||||||
input: input
|
input: input
|
||||||
|
|
||||||
new MutationObserver(@load.bind @).observe @nodes.challenge,
|
new MutationObserver(@load.bind @).observe @nodes.challenge,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user