diff --git a/4chan_x.user.js b/4chan_x.user.js index 1a79a5638..9edde5ced 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1073,7 +1073,7 @@ return $.replace(home, a); }, dialog: function() { - var arr, checked, description, dialog, hiddenNum, hiddenThreads, hidingul, html, input, key, li, main, obj, overlay, ul, _i, _len, _ref, _ref2; + var arr, checked, description, dialog, hiddenNum, hiddenThreads, html, input, key, li, main, obj, overlay, ul, _i, _len, _ref, _ref2; hiddenThreads = $.get("hiddenThreads/" + g.BOARD + "/", {}); hiddenNum = Object.keys(g.hiddenReplies).length + Object.keys(hiddenThreads).length; html = "
| | |

:
:
Supported format specifiers:
  • Day: %a, %A, %d, %e
  • Month: %m, %b, %B
  • Year: %y
  • Hour: %k, %H, %l (lowercase L), %I (uppercase i)
  • Month: %M, %p, %P
ActionsKeybinds
Close Options or QR
Quick spoiler
Open QR with post number inserted
Open QR without post number inserted
Submit post
Select next reply
Select previous reply
See next thread
See previous thread
Jump to the next page
Jump to the previous page
Jump to page 0
Open thread in current tab
Open thread in new tab
Expand thread
Watch thread
Hide thread
Expand selected image
Expand all images
Update now
Reset the unread count to 0
"; @@ -1088,9 +1088,6 @@ ul = $.el('ul', { textContent: key }); - if (key === 'Hiding') { - hidingul = ul; - } for (key in obj) { arr = obj[key]; checked = conf[key] ? "checked" : ""; @@ -1106,8 +1103,8 @@ li = $.el('li', { innerHTML: " : Forget all hidden posts. Useful if you accidentally hide a post and have `show stubs` disabled." }); - $.append(hidingul, li); $.bind($('button', li), 'click', options.clearHidden); + $.append($('ul:nth-child(2)', dialog), li); $.bind($('#flavors', dialog), 'change', $.cb.value); $.bind($('input[name=time]', dialog), 'keyup', options.time); $.bind($('input[name=backlink]', dialog), 'keyup', options.backlink); diff --git a/script.coffee b/script.coffee index fcdf0660d..2a430f259 100644 --- a/script.coffee +++ b/script.coffee @@ -864,7 +864,6 @@ options = for key, obj of config.main ul = $.el 'ul', textContent: key - hidingul = ul if key is 'Hiding' for key, arr of obj checked = if conf[key] then "checked" else "" description = arr[1] @@ -873,10 +872,11 @@ options = $.bind $('input', li), 'click', $.cb.checked $.append ul, li $.append main, ul + li = $.el 'li', innerHTML: " : Forget all hidden posts. Useful if you accidentally hide a post and have `show stubs` disabled." - $.append hidingul, li $.bind $('button', li), 'click', options.clearHidden + $.append $('ul:nth-child(2)', dialog), li $.bind $('#flavors', dialog), 'change', $.cb.value $.bind $('input[name=time]', dialog), 'keyup', options.time