62 Commits

Author SHA1 Message Date
Mayhem
756722e184 Merge branch 'v3' into cr32 2014-02-19 00:55:33 +01:00
Mayhem
e2f26cfa66 Keep the title in 404'd tabs. 2014-02-13 15:04:12 +01:00
Mayhem
cbc85407df Optimize setting data operations.
Setting local data on Chrome is not throttled, only debounce sync.
Don't make DBs save data on every page load, don't save cleaning operations if nothing's changed.
Debounce Unread.saveLastReadPost() on Chrome to every 5 seconds.
2014-02-13 14:41:24 +01:00
Mayhem
3d7097fffb Screw supporting 4chan's inline features. 2014-02-05 16:11:04 +01:00
Mayhem
509156a956 Don't use the IndexBuild event for hiding threads. 2014-01-26 20:29:21 +01:00
Mayhem
f27123d04c Remove Chrome workaround in Unread.update() function. 2014-01-23 17:15:27 +01:00
Mayhem
710655f13e Use xhr.responseType = 'json'. 2014-01-21 14:46:26 +01:00
Mayhem
985afb2a1a Support 4cdn. 2013-11-21 23:11:02 +01:00
Mayhem
ffc625259e Replace the times symbol with fa-times. #1338 2013-11-16 15:57:47 +01:00
Mayhem
4d27a81888 Extra return to clean up transpiled code. 2013-11-09 18:37:09 +01:00
Mayhem
a1a12aaf23 Make sure posts are read when scrolling via next reply keybind. 2013-11-03 13:57:55 +01:00
Mayhem
81a2b096a1 Introduce Header.{scrollToIfNeeded,getTopOf,getBottomOf}() and use them.
4chan X - now with proper bottom header support.
2013-11-03 01:27:23 +01:00
Mayhem
4c00c6f9ae Add thread refresh shortcut. 2013-11-02 19:21:05 +01:00
Mayhem
bc72f0f763 Create importHTML function, and use it. 2013-11-02 19:21:05 +01:00
Mayhem
2f9e44a773 Update the threads sticky/closed status on each index refresh.
Also fix the position of the sticky/closed icon.
2013-11-02 19:21:05 +01:00
Mayhem
c8f7eef912 Fix and tweak watcher updater after an index refresh. 2013-11-02 19:21:05 +01:00
Mayhem
0038f1f011 Slightly better consistency between "reload"/"refresh"/"update" usage. 2013-11-02 19:21:04 +01:00
Mayhem
22c561b796 Take into account dead threads in the watcher after an index refresh. 2013-11-02 19:21:04 +01:00
Mayhem
79644546ce Only listen to 'IndexRefresh' events when browsing the index. 2013-11-02 19:21:04 +01:00
Mayhem
11c3b0018a Fix thread watcher/expansion/hiding buttons after an index refresh. 2013-11-02 19:21:03 +01:00
Mayhem
ef38269981 Initial work for index navigation improvements. 2013-11-02 19:21:02 +01:00
Mayhem
4ff5fd287a Update FontAwesome. 2013-10-23 21:13:10 +02:00
Mayhem
2aec18ab49 Return early. 2013-10-06 21:28:02 +02:00
Mayhem
10e93091d7 {Post,Thread}::callbacks => {Post,Thread}.callbacks 2013-10-02 11:38:15 +02:00
Mayhem
3a13d0429c Remove ThreadWatcher conversion from old format. 2013-09-19 15:02:43 +02:00
Mayhem
15309e7968 Tiny refactor in ThreadUpdater. 2013-09-06 02:43:29 +02:00
Mayhem
a1efe855e2 Make use of xhr.timeout. 2013-08-28 00:12:36 +02:00
Mayhem
5c36d646a5 Start desktop notification closing timeout only after they appeared. 2013-08-26 21:31:30 +02:00
Mayhem
6454090cfd Warn with a desktop notification when we're running low on cached captchas. Close #1253.
Also increase delay to close the notifications from 5 to 7 seconds. #1252
2013-08-21 16:24:48 +02:00
Mayhem
08ea3cf7d0 Count unread posts if desktop notifications are enabled.
Also fix missing Conf check, and return too early in counting replies to you.
Minor tweaks here and there.
2013-08-21 15:45:32 +02:00
Mayhem
606cbcc1c1 Shave a few lines. 2013-08-21 03:25:56 +02:00
Mayhem
7cd4b7cee0 Use FontAwesome to replace the thread watcher toggle icon. 2013-08-20 17:06:23 +02:00
Mayhem
8e98e030c2 document.hasFocus() doesn't always work as intended in Chrome stable.
See crbug.com/64846
2013-08-18 03:38:13 +02:00
Mayhem
a088db9ee2 Use document.hasFocus() instead. 2013-08-18 00:28:48 +02:00
Mayhem
346010e188 Show a desktop notification even if the tab is visible. 2013-08-18 00:20:07 +02:00
Mayhem
5742405f67 Add desktop notification permission granting setting and notice. 2013-08-17 22:37:30 +02:00
Mayhem
43fbf62da0 Add the 4chan X logo to desktop notifications. 2013-08-17 19:02:04 +02:00
Mayhem
e539c35a53 Show a desktop notification for 5 seconds when someone replies to you.
Close #971.
2013-08-17 18:50:20 +02:00
Mayhem
b9afef771d Rename the Notification class to Notice.
To avoid conflicts with window.Notification.
2013-08-17 15:46:21 +02:00
Mayhem
8ef04b655c Don't show (...) when updating watched threads status and there's nothing to fetch. 2013-08-13 15:07:25 +02:00
Mayhem
a92afa5679 Add fetching status at the top of the thread watcher. #99 2013-08-12 21:41:13 +02:00
Mayhem
a1d238b233 Finish Thread Watcher rewrite. #99 2013-08-12 19:21:16 +02:00
Mayhem
6261160891 Start the Thread Watcher rewrite. #99
Fix #1112.
2013-08-12 19:20:56 +02:00
Mayhem
e0cb19ac53 $.xhr will now deal with Last-Modified and If-Modified-Since headers itself. 2013-08-11 18:02:22 +02:00
Mayhem
bbe93eb475 Shave a line. 2013-08-07 15:24:21 +02:00
Mayhem
738a175f43 Avoid using {d.body,doc}.scroll{Top,Left}, use window.scroll[...] instead. 2013-08-06 21:11:03 +02:00
Mayhem
b83e536c86 Don't save the unread count if the thread is dead. 2013-08-01 20:41:23 +02:00
Mayhem
39aa9d3cb5 Merge pull request #1183 from MayhemYDG/opera
Drop Opera <15 support.
2013-07-09 01:56:58 -07:00
Mayhem
7d38f0502c More thoughtful unread-scroll code. 2013-07-08 23:54:44 +02:00
Mayhem
8560f204b2 Remove userjs support and Presto-related code.
Add `minimum_opera_version` in the manifest.
Up the min Chrome version for unprefixed MutationObserver support.
2013-07-08 19:09:23 +02:00