diff --git a/4chan_x.js b/4chan_x.js index 1285e215a..85eb46427 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -2,7 +2,7 @@ // @name 4chan x // @namespace aeosynth // @description Adds various features. -// @version 1.27.3 +// @version 1.27.6 // @copyright 2009-2011 James Campos // @license MIT; http://en.wikipedia.org/wiki/Mit_license // @include http://boards.4chan.org/* @@ -560,7 +560,6 @@ imgHeight = img.offsetHeight; top = clientY + imageHover.offset.y; bot = top + imgHeight; - log(bot, imageHover.winHeight); img.style.top = imageHover.winHeight < imgHeight || top < 0 ? '0px' : bot > imageHover.winHeight ? imageHover.winHeight - imgHeight + 'px' : top + 'px'; return img.style.left = clientX + imageHover.offset.x; }, @@ -978,16 +977,16 @@ }, load: function(e) { var dialog; + recaptchaReload(); try { return e.target.contentWindow.postMessage('', '*'); } catch (err) { dialog = $('#qr'); if (g.REPLY && $.config('Persistent QR')) { - qr.refresh(dialog); + return qr.refresh(dialog); } else { - $.remove(dialog); + return $.remove(dialog); } - return recaptchaReload(); } }, messageIframe: function(e) { @@ -1542,7 +1541,7 @@ interval = $('input[name=interval]', div); interval.value = GM_getValue('Interval', 10); $.bind(interval, 'change', updateInterval); - $.bind($('input[type=button]'), 'click', updateNow); + $.bind($('input[type=button]', div), 'click', updateNow); d.body.appendChild(div); if (GM_getValue('autoG')) { return updateAuto.call($("input[name=autoL]", div)); diff --git a/changelog b/changelog index 1ed9c0233..93a043f1e 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,12 @@ +1.27.6 +- fix 'update now' button + +1.27.5 +- fix regression - reload captcha after posting + +1.27.4 +- fix imageHover on chrome + 1.27.3 - fix regression - movement diff --git a/header b/header index d67e3a4d1..4403e5a9f 100644 --- a/header +++ b/header @@ -2,7 +2,7 @@ // @name 4chan x // @namespace aeosynth // @description Adds various features. -// @version 1.27.3 +// @version 1.27.6 // @copyright 2009-2011 James Campos // @license MIT; http://en.wikipedia.org/wiki/Mit_license // @include http://boards.4chan.org/* diff --git a/script.coffee b/script.coffee index 5413040b9..6a5ed616b 100644 --- a/script.coffee +++ b/script.coffee @@ -1,3 +1,4 @@ +# XXX error on FUCKING CHROME {log} = console if console? config = @@ -390,7 +391,6 @@ imageHover = top = clientY + imageHover.offset.y bot = top + imgHeight - log bot, imageHover.winHeight img.style.top = if imageHover.winHeight < imgHeight or top < 0 '0px' @@ -722,6 +722,7 @@ qr = $.removeClass dialog, 'auto' load: (e) -> + recaptchaReload() try e.target.contentWindow.postMessage '', '*' catch err @@ -732,8 +733,6 @@ qr = else $.remove dialog - recaptchaReload() - messageIframe: (e) -> message = $('table b').firstChild.textContent e.source.postMessage message, '*' @@ -1182,7 +1181,7 @@ updaterMake = -> interval.value = GM_getValue 'Interval', 10 $.bind interval, 'change', updateInterval - $.bind $('input[type=button]'), 'click', updateNow + $.bind $('input[type=button]', div), 'click', updateNow d.body.appendChild div