diff --git a/4chan_x.user.js b/4chan_x.user.js index 763c1e9c2..81aec7d17 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -7,6 +7,7 @@ // @license MIT; http://en.wikipedia.org/wiki/Mit_license // @include http://boards.4chan.org/* // @include http://images.4chan.org/* +// @include http://sys.4chan.org/* // @run-at document-start // @updateURL https://raw.github.com/MayhemYDG/4chan-x/stable/4chan_x.user.js // @icon http://mayhemydg.github.com/4chan-x/favicon.gif @@ -3051,7 +3052,17 @@ g.PAGENUM = parseInt(temp) || 0; } if (location.hostname === 'sys.4chan.org') { - $.ready(qr.sys); + $.ready(function() { + if (/report/.test(location.search)) { + return $.on($('#recaptcha_response_field'), 'keydown', function(e) { + if (e.keyCode === 8 && !e.target.value) { + return window.location = 'javascript:Recaptcha.reload()'; + } + }); + } else { + + } + }); return; } if (location.hostname === 'images.4chan.org') { diff --git a/Cakefile b/Cakefile index a2dfcd724..0a2a0a0ea 100644 --- a/Cakefile +++ b/Cakefile @@ -14,6 +14,7 @@ HEADER = """ // @license MIT; http://en.wikipedia.org/wiki/Mit_license // @include http://boards.4chan.org/* // @include http://images.4chan.org/* +// @include http://sys.4chan.org/* // @run-at document-start // @updateURL https://raw.github.com/MayhemYDG/4chan-x/stable/4chan_x.user.js // @icon http://mayhemydg.github.com/4chan-x/favicon.gif diff --git a/script.coffee b/script.coffee index 4301a0677..33b280ed1 100644 --- a/script.coffee +++ b/script.coffee @@ -2334,7 +2334,12 @@ Main = g.PAGENUM = parseInt(temp) or 0 if location.hostname is 'sys.4chan.org' - $.ready qr.sys + $.ready -> + if /report/.test location.search + $.on $('#recaptcha_response_field'), 'keydown', (e) -> + window.location = 'javascript:Recaptcha.reload()' if e.keyCode is 8 and not e.target.value + else + # posting return if location.hostname is 'images.4chan.org' $.ready -> redirect.init() if d.title is '4chan - 404'