3718 Commits

Author SHA1 Message Date
Nicolas Stepien
fec837ecdc CoffeeScript tricks. 2013-02-11 15:01:36 +01:00
Nicolas Stepien
84617ba149 Use custom events to add our menu entries.
children -> subEntries
2013-02-11 14:11:49 +01:00
Nicolas Stepien
64cd4a9043 Fuck that. 2013-02-11 00:15:10 +01:00
Nicolas Stepien
8b836aec8d Add Notifications.
Add error handling. I don't feel like I did a good job of it, might revisit later.
2013-02-10 23:15:06 +01:00
Nicolas Stepien
fb9edd5176 Release 2.38.1. 2013-02-09 21:26:55 +01:00
Nicolas Stepien
6bcbf3deeb Shorter Relative Post Dates description. 2013-02-09 21:23:30 +01:00
Nicolas Stepien
b6cf7220c4 Most of the Header is done, see changelog file.
Add 4chan and 4chan X settings links in the header's menu.

Add $.asap.

Add UI.Menu.
The menu API now requires a type ("post" or "header").

Add Get.boardsConfig.
2013-02-09 18:50:21 +01:00
Nicolas Stepien
c7afc923e0 typo, blame @qqueue 2013-02-09 03:51:07 +01:00
Nicolas Stepien
7cc62847e7 Change changelog. It's called relative dates everywhere else. 2013-02-07 20:34:43 +01:00
Nicolas Stepien
280575e6f5 Release 2.38.0. 2013-02-07 20:31:01 +01:00
Mayhem
0a9c2ff75c Merge pull request #897 from qqueue/relativedate
Relative Dates, close #758
2013-02-07 10:49:03 -08:00
queue
bed90cfd03 Reduce recalculation needed for RelativeDates
Capture more state in closure scopes. Pretty clever, at the expense of
simplicity.
2013-02-07 11:34:03 -07:00
Nicolas Stepien
43aae50ac5 thedarkcave now has https support. 2013-02-07 13:22:24 +01:00
queue
b49664a11a Implement relative dates, close #758
Squash of 21 commits:

--
Document "%R" relative time formatter

Sounds reasonable, don't you think?

--
Implement %R time formatter

original code do not steal

--
Add absolute time as title on date elements

--
Update relative post times if necessary

Coupled code, I know. Would be better to have a 'threadupdate' event to
subscribe to, oh well.

--
Update changelog

--
Rewrite relative date formatter function

Aeosynth-approved, or at least acknoledged

--
Reimplement relative post times in namespace

Less quick-and-dirty, more right.

Still need to polyfill visibility

--
Polyfill and correct usage of page visibility

Reselecting the tab always flushes (since ui thread block will be
percieved as part of the tab switch), but background flushes don't queue
when tab is not visible.

This is actually a better implementation than html5chan has right now,
will need to backport it later.

--
Remove %R reference in documentation

--
Clean up RelativeDates code

Aeosynth approved (TM) (C)

--
Move page visibility polyfill to Main

--
Remove unnecessary ?

--
Replace $.hidden() fn with d.hidden

--
Use visibility polyfill for QR

--
Remove all future relative dates

Looks like it's all over after this.

--
Compact pluralize condition

--
Fix alignment

--
Change RelativeDates.flush -> @flush

--
Remove initial setTimeout

Is unnecessary, as node is called, which will call flush at least once
and set the timeout again.

--
Improve absolute date display and cache diff

Title tooltip now uses either time formatting rice or the original 4chan
timestamp instead of toString().

the diff between a date and now is now shared between `relative` and
`setUpdate` to avoid recalculation.

--
Remove re-calling of Time formatting

Relying on the ordering of `node` callbacks, so textContext will already
have the formatted time.
2013-02-07 01:49:16 -07:00
Nicolas Stepien
b587719af8 Close #921. 2013-02-06 20:26:25 +01:00
Nicolas Stepien
c54ddff83d Add Filter. 2013-01-27 15:09:24 +01:00
Nicolas Stepien
7dbd481a6d Add Reply Hiding in the Meny, with settings.
Save hiding settings of individual replies.

Close #628.
Close #796.
2013-01-26 14:24:37 +01:00
Nicolas Stepien
d8b0b74df0 Add Thread Hiding in the Menu, with stub setting.
Add an option to toggle Thread/Reply Hiding Buttons.
Save hiding settings of individual threads, like if we want to see its stub or not when we reload the
page.
Add the menu buttons in stubs.
Make the open function for menu entries optional.
2013-01-26 10:49:37 +01:00
Nicolas Stepien
7bf2e7dd45 Add Menu. Close #627. Add Report/Delete/Download/Archive Link. 2013-01-25 12:13:20 +01:00
Nicolas Stepien
ddbab74efb Changelog. Actually update the thread when going back online. 2013-01-24 22:54:17 +01:00
Nicolas Stepien
7e2fb6d4ae fix redirections 2013-01-24 13:55:41 +01:00
Nicolas Stepien
81dd0fe9af Add Recursive Hiding.
Close #665.
Add Thread.fullID and Post.fullID.
Smarter quote un-inlining.
2013-01-24 11:45:05 +01:00
Nicolas Stepien
1f94b35df4 Release 2.37.6. 2013-01-22 20:22:28 +01:00
Nicolas Stepien
fa5f51f1df Fix image expanding. 2013-01-22 20:19:18 +01:00
Nicolas Stepien
8a587f515c Add Reply Hiding.
Make Thread & Reply Hiding work with other features.
Tiny fixes.
2013-01-22 18:24:12 +01:00
Nicolas Stepien
8edd4d5e64 Release 2.37.5. 2013-01-20 13:48:45 +01:00
Nicolas Stepien
dadbb4e792 Fix quoting inside inlined backlinks. Fix #900
Well that's interesting: selectors with Element.querySelector|All
will search for corresponding elements inside the whole document,
and will only return elements that are inside your given root element.
2013-01-20 13:23:56 +01:00
Nicolas Stepien
6047151513 Add Thread Hiding. 2013-01-19 15:40:25 +01:00
Nicolas Stepien
bef8de6e70 Release 2.37.4. 2013-01-18 22:06:55 +01:00
Nicolas Stepien
e2718c18b6 Merge branch 'master' of github.com:MayhemYDG/4chan-x 2013-01-18 22:06:42 +01:00
Nicolas Stepien
9d0121a551 Fuck you moot, don't add titles to mobile elements. 2013-01-18 22:05:57 +01:00
Mayhem
1a9dd3115d Merge pull request #896 from aeosynth/pdf
fix #831 - don't attempt to expand pdfs
2013-01-16 02:42:14 -08:00
James Campos
ac6dd43682 changelog 2013-01-16 02:33:04 -08:00
James Campos
1b81a79105 tweak 2013-01-16 02:31:48 -08:00
James Campos
92adcaf28a ImageExpand.expand: return if pdf 2013-01-15 23:28:56 -08:00
James Campos
cc04f1b9e9 post.hasPdf 2013-01-15 23:27:21 -08:00
Nicolas Stepien
a7f255fa26 fixes 2013-01-15 15:42:01 +01:00
Nicolas Stepien
d0093a419f Screw that, I'll try it later. 2013-01-15 15:01:27 +01:00
Nicolas Stepien
3c359bf560 Some sort of catalog support. 2013-01-14 02:52:47 +01:00
Nicolas Stepien
cf55f670c0 Merge branch 'master' into v3
I really need to get back to this.
2013-01-13 19:17:28 +01:00
Nicolas Stepien
e5355e450b Typo. 2013-01-11 10:51:06 +01:00
Nicolas Stepien
6600d960b5 Add /po/ archive redirection. 2013-01-10 10:23:07 +01:00
Nicolas Stepien
b1dce1ec2f Release 2.37.3. 2013-01-10 09:56:36 +01:00
Nicolas Stepien
325d5920f1 Fix #887 2013-01-10 09:49:59 +01:00
Nicolas Stepien
b6645773f3 Fix #888, #890 2013-01-10 09:39:59 +01:00
Nicolas Stepien
82e51f6723 One more year. 2013-01-07 03:02:44 +01:00
Nicolas Stepien
8e71bdc1ba Release 2.37.2. 2013-01-03 15:36:59 +01:00
Nicolas Stepien
c720b90a86 When quoting on the index, only change the target thread if the textarea is empty. Close #879 2013-01-03 15:34:15 +01:00
Nicolas Stepien
0477eb595c Quotify inside archived posts. 2013-01-03 15:30:31 +01:00
Nicolas Stepien
7b0c961805 Merge branch 'master' of github.com:MayhemYDG/4chan-x 2013-01-03 15:20:20 +01:00