Fix next reply hotkey behaviour
This commit is contained in:
parent
3c77b4365b
commit
661a141bfe
@ -910,6 +910,9 @@
|
||||
rect = td.getBoundingClientRect();
|
||||
if (rect.top > 0 && rect.bottom < d.body.clientHeight) {
|
||||
next = $.x('following::td[@class="reply"]', td);
|
||||
if ($.x('ancestor::div[@class="thread"]/div', next) !== thread) {
|
||||
return;
|
||||
}
|
||||
rect = next.getBoundingClientRect();
|
||||
if (rect.top > 0 && rect.bottom < d.body.clientHeight) {
|
||||
next.className = 'replyhl';
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
- fix options centering on Opera
|
||||
- fix append '#watch' only when auto watch is enabled
|
||||
- fix cooldown with the normal post form
|
||||
- fix `Select next reply` hotkey behaviour
|
||||
- aeosynth:
|
||||
- keep options dialog at constant size
|
||||
- drop firefox 3.6 support (again...)
|
||||
|
||||
@ -659,6 +659,7 @@ keybinds =
|
||||
rect = td.getBoundingClientRect()
|
||||
if rect.top > 0 and rect.bottom < d.body.clientHeight #you're fully visible
|
||||
next = $.x 'following::td[@class="reply"]', td
|
||||
return if $.x('ancestor::div[@class="thread"]/div', next) isnt thread
|
||||
rect = next.getBoundingClientRect()
|
||||
if rect.top > 0 and rect.bottom < d.body.clientHeight #and so is the next
|
||||
next.className = 'replyhl'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user