Fix words being cut off in non-JS captcha.

This commit is contained in:
ccd0 2015-06-16 10:33:14 -07:00
parent efa80d5a3b
commit 7b0aa7ee77
5 changed files with 16 additions and 2 deletions

View File

@ -21,6 +21,8 @@
"*://sys.4chan.org/*",
"*://a.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/frame?*&k=6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc*",
"*://www.google.com/recaptcha/api/fallback?k=6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc"

View File

@ -9,6 +9,10 @@ Main =
$.ready -> Captcha.fixes.init()
return
if location.hostname is 'www.4chan.org'
$.onExists d.documentElement, 'body', false, -> $.addStyle Main.cssWWW
return
g.threads = new SimpleDict()
g.posts = new SimpleDict()
@ -301,7 +305,9 @@ Main =
$.ready ->
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: [
['Polyfill', Polyfill]

View File

@ -0,0 +1,3 @@
noscript div:first-child, noscript iframe {
height: 422px !important;
}

3
src/General/css/www.css Normal file
View File

@ -0,0 +1,3 @@
#captcha-cnt {
height: auto;
}

View File

@ -1,5 +1,5 @@
Report =
css: `<%= importCSS('report') %>`
css: `<%= importCSS('noscript', 'report') %>`
init: ->
return unless /\bmode=report\b/.test(location.search) and match = location.search.match /\bno=(\d+)/