diff --git a/4chan_x.js b/4chan_x.js index d541d179a..3aa8ead83 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -82,7 +82,6 @@ 'Quick Reply': [true, 'Reply without leaving the page'], 'Quick Report': [true, 'Add quick report buttons'], 'Reply Hiding': [true, 'Hide single replies'], - 'Reply Navigation': [false, 'Navigate to the beginning / end of a thread'], 'Sauce': [true, 'Add sauce to images'], 'Show Stubs': [true, 'Of hidden threads / replies'], 'Thread Expansion': [true, 'View all replies'], @@ -2119,30 +2118,6 @@ return _results; }); } - if ($.config('Reply Navigation')) { - g.callbacks.push(function(root) { - var arr, down, el, span, up, _i, _len, _results; - arr = $$('span[id^=norep]', root); - _results = []; - for (_i = 0, _len = arr.length; _i < _len; _i++) { - el = arr[_i]; - span = $.el('span'); - up = $.el('a', { - textContent: '▲', - className: 'pointer' - }); - $.bind(up, 'click', replyNav); - down = $.el('a', { - textContent: '▼', - className: 'pointer' - }); - $.bind(down, 'click', replyNav); - $.append(span, $.tn(' '), up, $.tn(' '), down); - _results.push($.after(el, span)); - } - return _results; - }); - } if ($.config('Keybinds')) { $.bind(d, 'keydown', keydown); $.bind(d, 'keypress', keypress); diff --git a/script.coffee b/script.coffee index bb95c1ca1..75adaef09 100644 --- a/script.coffee +++ b/script.coffee @@ -24,7 +24,6 @@ config = 'Quick Reply': [true, 'Reply without leaving the page'] 'Quick Report': [true, 'Add quick report buttons'] 'Reply Hiding': [true, 'Hide single replies'] - 'Reply Navigation': [false, 'Navigate to the beginning / end of a thread'] 'Sauce': [true, 'Add sauce to images'] 'Show Stubs': [true, 'Of hidden threads / replies'] 'Thread Expansion': [true, 'View all replies'] @@ -611,6 +610,7 @@ keyModeNormal = (e) -> watch.call watchButton nav = + #TODO page nav # ◀ ▶ init: -> span = $.el 'span', @@ -1673,22 +1673,6 @@ if $.config 'Anonymize' else $.remove trip -if $.config 'Reply Navigation' - g.callbacks.push (root) -> - arr = $$('span[id^=norep]', root) - for el in arr - span = $.el 'span' - up = $.el 'a', - textContent: '▲' - className: 'pointer' - $.bind up, 'click', replyNav - down = $.el 'a', - textContent: '▼' - className: 'pointer' - $.bind down, 'click', replyNav - $.append span, $.tn(' '), up, $.tn(' '), down - $.after el, span - if $.config 'Keybinds' $.bind d, 'keydown', keydown $.bind d, 'keypress', keypress