4081 Commits

Author SHA1 Message Date
Nicolas Stepien
d2d7959df7 Don't strect the dump button.
yay, flexbox.
2013-02-12 23:52:39 +01:00
Nicolas Stepien
4e976a5594 Style fixes for the catalog.
4chan's integration of the catalog is terrible. I don't see myself supporting it any further.
2013-02-12 23:37:31 +01:00
Nicolas Stepien
a9b427f0d2 Remove the 'Open Reply in New Tab' config and make it the default behavior.
Various QR fixes.
Tiny styling adjustments.
You can now create threads when outside of the index.
Allow selection-to-quote to work on any text inside the quoted post, not just the comment. Close #789.
2013-02-12 23:05:09 +01:00
Nicolas Stepien
0f0d410209 Close the Header's menu when opening the QR.
Handle errors when opening the QR dialog.
2013-02-12 03:43:12 +01:00
Nicolas Stepien
566b468327 Some QR fixes.
Use notifications for QR errors and successes! Close #562.
Add an entry to open the QR in the Header's menu.
2013-02-12 03:32:45 +01:00
Nicolas Stepien
34a11f2e74 Add QR hastily. 2013-02-12 01:20:33 +01:00
Nicolas Stepien
9588a7e86f Add subtle shadows to notifications too. 2013-02-12 00:41:26 +01:00
Nicolas Stepien
82249ef3ec Add support for 4chan's various themes.
On the catalog, it allows dialogs to be correctly themed as it didn't have the same stylesheets.
Fix #919.
2013-02-12 00:29:04 +01:00
Nicolas Stepien
9de0342dbd Detect current style and style changes.
doc = d.documentElement
2013-02-11 22:25:04 +01:00
Nicolas Stepien
0adc86b392 That works too. 2013-02-11 17:19:58 +01:00
Nicolas Stepien
a70b1ee739 Better ux for header bar hiding. 2013-02-11 16:54:03 +01:00
Nicolas Stepien
d4b5ef0307 More cs tricks. 2013-02-11 15:36:43 +01:00
Nicolas Stepien
f4f53b92f2 add $.event 2013-02-11 15:34:37 +01:00
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