diff --git a/4chan_x.user.js b/4chan_x.user.js index d9b6ff17e..3b7137f0f 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1068,7 +1068,7 @@ 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 = $.get("hiddenThreads/" + g.BOARD + "/", {}); hiddenNum = Object.keys(g.hiddenReplies).length + Object.keys(hiddenThreads).length; - html = "

"; + html = "
| | |

Format specifiers (source)
SpecifierDescriptionValues/Example
Year
%ytwo digit year00-99
Month
%bmonth, abbreviatedJun
%Bmonth, full lengthJune
%mmonth, zero padded06
Day
%aweekday, abbreviatedSat
%Aweekday, fullSaturday
%dday of the month, zero padded03
%eday of the month3
Time
%Hhour (24 hour clock) zero padded13
%l (lowercase L)hour (12 hour clock)1
%I (uppercase i)hour (12 hour clock) zero padded01
%khour (24 hour clock)13
%Mminutes, zero padded54
%pupper case AM or PMPM
%Plower case am or pmpm
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
"; dialog = $.el('div', { id: 'options', innerHTML: html @@ -1095,15 +1095,15 @@ $.append(main, ul); } li = $.el('li', { - innerHTML: " : Forget all hidden posts. Useful if you accidentally hide a post and have `show stubs` disabled." + innerHTML: " : Forget all hidden posts. Useful if you accidentally hide a post and have `show stubs` disabled." }); $.append(hidingul, li); - _ref2 = $$('input[type=checkbox]', dialog); + _ref2 = $$('#main input', dialog); for (_i = 0, _len = _ref2.length; _i < _len; _i++) { input = _ref2[_i]; $.bind(input, 'click', $.cb.checked); } - $.bind($('input[type=button]', dialog), 'click', options.clearHidden); + $.bind($('button', dialog), 'click', options.clearHidden); _ref3 = $$('#floaty a', dialog); for (_j = 0, _len2 = _ref3.length; _j < _len2; _j++) { link = _ref3[_j]; @@ -1136,20 +1136,10 @@ return e.stopPropagation(); }); }, - tab: function() { - var div, _i, _len, _ref, _results; - _ref = $('#content').children; - _results = []; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - div = _ref[_i]; - _results.push(div.id === this.name ? $.show(div) : $.hide(div)); - } - return _results; - }, clearHidden: function(e) { $["delete"]("hiddenReplies/" + g.BOARD + "/"); $["delete"]("hiddenThreads/" + g.BOARD + "/"); - this.value = "hidden: 0"; + this.textContent = "hidden: 0"; return g.hiddenReplies = {}; }, keybind: function(e) { @@ -3035,9 +3025,15 @@ list-style: none;\ padding: 0;\ }\ + #options label {\ + text-decoration: underline;\ + }\ #floaty {\ float: left;\ }\ + #options [name=tab]:not(:checked) + * {\ + display: none;\ + }\ #content > * {\ height: 450px;\ overflow: auto;\ diff --git a/script.coffee b/script.coffee index 9a4c545d1..0e0180ccd 100644 --- a/script.coffee +++ b/script.coffee @@ -788,7 +788,7 @@ options =
- main | sauce | time | keybinds + | | |
4chan X | @@ -799,10 +799,12 @@ options =

-
-
- -