Merge branch 'master' into dev

This commit is contained in:
James Campos 2011-04-06 04:28:13 -07:00
commit 4b8725297b
4 changed files with 18 additions and 11 deletions

View File

@ -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 <james.r.campos@gmail.com>
// @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));

View File

@ -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

2
header
View File

@ -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 <james.r.campos@gmail.com>
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
// @include http://boards.4chan.org/*

View File

@ -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