Fix words being cut off in non-JS captcha.
This commit is contained in:
parent
efa80d5a3b
commit
7b0aa7ee77
@ -21,6 +21,8 @@
|
|||||||
"*://sys.4chan.org/*",
|
"*://sys.4chan.org/*",
|
||||||
"*://a.4cdn.org/*",
|
"*://a.4cdn.org/*",
|
||||||
"*://i.4cdn.org/*",
|
"*://i.4cdn.org/*",
|
||||||
|
"*://www.4chan.org/banned",
|
||||||
|
"*://www.4chan.org/feedback",
|
||||||
"https://www.google.com/recaptcha/api2/anchor?k=6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc*",
|
"https://www.google.com/recaptcha/api2/anchor?k=6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc*",
|
||||||
"https://www.google.com/recaptcha/api2/frame?*&k=6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc*",
|
"https://www.google.com/recaptcha/api2/frame?*&k=6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc*",
|
||||||
"*://www.google.com/recaptcha/api/fallback?k=6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc"
|
"*://www.google.com/recaptcha/api/fallback?k=6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc"
|
||||||
|
|||||||
@ -9,6 +9,10 @@ Main =
|
|||||||
$.ready -> Captcha.fixes.init()
|
$.ready -> Captcha.fixes.init()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if location.hostname is 'www.4chan.org'
|
||||||
|
$.onExists d.documentElement, 'body', false, -> $.addStyle Main.cssWWW
|
||||||
|
return
|
||||||
|
|
||||||
g.threads = new SimpleDict()
|
g.threads = new SimpleDict()
|
||||||
g.posts = new SimpleDict()
|
g.posts = new SimpleDict()
|
||||||
|
|
||||||
@ -301,7 +305,9 @@ Main =
|
|||||||
$.ready ->
|
$.ready ->
|
||||||
cb() if Main.isThisPageLegit()
|
cb() if Main.isThisPageLegit()
|
||||||
|
|
||||||
css: `<%= importCSS('font-awesome', 'style', 'yotsuba', 'yotsuba-b', 'futaba', 'burichan', 'tomorrow', 'photon') %>`
|
css: `<%= importCSS('font-awesome', 'noscript', 'style', 'yotsuba', 'yotsuba-b', 'futaba', 'burichan', 'tomorrow', 'photon') %>`
|
||||||
|
|
||||||
|
cssWWW: `<%= importCSS('noscript', 'www') %>`
|
||||||
|
|
||||||
features: [
|
features: [
|
||||||
['Polyfill', Polyfill]
|
['Polyfill', Polyfill]
|
||||||
|
|||||||
3
src/General/css/noscript.css
Normal file
3
src/General/css/noscript.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
noscript div:first-child, noscript iframe {
|
||||||
|
height: 422px !important;
|
||||||
|
}
|
||||||
3
src/General/css/www.css
Normal file
3
src/General/css/www.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#captcha-cnt {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
@ -1,5 +1,5 @@
|
|||||||
Report =
|
Report =
|
||||||
css: `<%= importCSS('report') %>`
|
css: `<%= importCSS('noscript', 'report') %>`
|
||||||
|
|
||||||
init: ->
|
init: ->
|
||||||
return unless /\bmode=report\b/.test(location.search) and match = location.search.match /\bno=(\d+)/
|
return unless /\bmode=report\b/.test(location.search) and match = location.search.match /\bno=(\d+)/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user