This commit is contained in:
Nicolas Stepien 2013-04-08 10:14:46 +02:00
parent e5012d6b44
commit 4cf7e55301
3 changed files with 12 additions and 4 deletions

View File

@ -1,5 +1,6 @@
- Added possibility to combine board-list toggle and custom text.
- Fix Thread Hiding initialization error.
- Added Reply Navigation back in, disabled by default.
- Fixed Thread Hiding initialization error.
# 3.0.0 - *2013-04-07*

View File

@ -11,6 +11,7 @@ Config =
'Comment Expansion': [true, 'Add buttons to expand too long comments.']
'Thread Expansion': [true, 'Add buttons to expand threads.']
'Index Navigation': [false, 'Add buttons to navigate between threads.']
'Reply Navigation': [false, 'Add buttons to navigate to top / bottom of thread.']
'Check for Updates': [true, 'Notify when updated versions of <%= meta.name %> are available.']
'Filtering':
'Anonymize': [false, 'Make everyone Anonymous.']

View File

@ -1928,7 +1928,7 @@ Keybinds =
Nav =
init: ->
return if g.VIEW isnt 'index' or !Conf['Index Navigation']
return if g.VIEW is 'index' and !Conf['Index Navigation'] or g.VIEW is 'thread' and !Conf['Reply Navigation']
span = $.el 'span',
id: 'navlinks'
@ -1946,10 +1946,16 @@ Nav =
$.on d, '4chanXInitFinished', -> $.add d.body, span
prev: ->
Nav.scroll -1
if g.VIEW is 'thread'
window.scrollTo 0, 0
else
Nav.scroll -1
next: ->
Nav.scroll +1
if g.VIEW is 'thread'
window.scrollTo 0, d.body.scrollHeight
else
Nav.scroll +1
getThread: (full) ->
headRect = Header.bar.getBoundingClientRect()