diff --git a/4chan_x.user.js b/4chan_x.user.js
index c8a2cff3e..86ee3fef4 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -1048,7 +1048,7 @@
return $.replace(home, a);
},
dialog: function() {
- var arr, checked, description, dialog, hiddenNum, hiddenThreads, html, input, key, li, link, main, obj, overlay, ul, _i, _j, _k, _len, _len2, _len3, _ref, _ref2, _ref3, _ref4;
+ var arr, checked, description, dialog, hiddenNum, hiddenThreads, hidingul, html, input, key, li, link, main, obj, overlay, ul, _i, _j, _k, _len, _len2, _len3, _ref, _ref2, _ref3, _ref4;
hiddenThreads = $.getValue("hiddenThreads/" + g.BOARD + "/", {});
hiddenNum = Object.keys(g.hiddenReplies).length + Object.keys(hiddenThreads).length;
html = "
";
@@ -1063,6 +1063,9 @@
ul = $.el('ul', {
textContent: key
});
+ if (key === 'Hiding') {
+ hidingul = ul;
+ }
for (key in obj) {
arr = obj[key];
checked = $.config(key) ? "checked" : "";
@@ -1074,14 +1077,10 @@
}
$.append(main, ul);
}
- ul = $.el('ul', {
- textContent: 'Other'
- });
li = $.el('li', {
innerHTML: " : Forget all hidden posts. Useful if you accidentally hide a post and have `show stubs` disabled."
});
- $.append(ul, li);
- $.append(main, ul);
+ $.append(hidingul, li);
_ref2 = $$('input[type=checkbox]', dialog);
for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
input = _ref2[_i];
diff --git a/script.coffee b/script.coffee
index 3a7a94aaa..2a46031bb 100644
--- a/script.coffee
+++ b/script.coffee
@@ -852,6 +852,7 @@ 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 $.config key then "checked" else ""
description = arr[1]
@@ -859,12 +860,9 @@ options =
innerHTML: ": #{description}"
$.append ul, li
$.append main, ul
- ul = $.el 'ul',
- textContent: 'Other'
li = $.el 'li',
innerHTML: " : Forget all hidden posts. Useful if you accidentally hide a post and have `show stubs` disabled."
- $.append ul, li
- $.append main, ul
+ $.append hidingul, li
for input in $$ 'input[type=checkbox]', dialog
$.bind input, 'click', $.cb.checked