225 Commits

Author SHA1 Message Date
ccd0
38f63e6aa8 Move most stuff from Site to g.SITE; Site.hostname -> g.SITE.ID; put data for other sites in g.sites. 2019-04-09 03:30:58 -07:00
ccd0
6caca656dc Fix thread watcher sometimes using a 304 response on re-added thread if 'Show Page' is on. 2019-04-06 06:37:38 -07:00
ccd0
28093b2348 Revert most of "Also avoid full Thread Watcher rebuild on removing entry."
This reverts most of commit 4fe17ac6efd669d2bfee09adfd44951bbf612732.
Keep consolidation of duplicated code.
2019-04-06 06:29:44 -07:00
ccd0
f3ed76f32f Support specifying the sites that filters apply to. #2171 2019-04-06 05:57:16 -07:00
ccd0
c72f09feed Force an unconditional request for threads.json if we need a thread's page number. 2019-04-04 22:14:06 -07:00
ccd0
574d1ad0d3 Show what pages watched threads are on. #1030 2019-04-04 17:36:01 -07:00
ccd0
ccf3692944 Merge branch 'master' into next 2019-04-04 07:00:32 -07:00
ccd0
f61fc5f1ee Fix Thread Watcher bug that in certain circumstances caused the last check of an archived thread for new replies to be skipped. 2019-04-04 06:59:41 -07:00
ccd0
4fe17ac6ef Also avoid full Thread Watcher rebuild on removing entry. 2019-04-04 01:48:38 -07:00
ccd0
af00c711ff Avoid needless Thread Watcher rebuild by using ThreadWatcher.update when possible. 2019-04-04 01:39:40 -07:00
ccd0
35b3275259 Simplify Thread Watcher menu code. 2019-04-04 01:02:35 -07:00
ccd0
71d4d2a2ec Move Thread Watcher settings out of submenu. 2019-04-04 00:57:59 -07:00
ccd0
296457a79f Get rid of ThreadWatcher.menu.refreshers hook and set menu content when menu is opened. 2019-04-04 00:41:30 -07:00
ccd0
86909be300 Add siteID parameter to ThreadWatcher.update 2019-04-04 00:13:37 -07:00
ccd0
9ab1c94e31 Replace rm in DataBoard.extend with properties of val set to undefined. 2019-04-03 23:35:33 -07:00
ccd0
3da684a08c Fix loophole in Thread Watcher aborting. 2019-03-24 04:22:14 -07:00
ccd0
695e995dce Let abort always exist, but we can't guarantee it will do anything. 2019-03-24 03:41:01 -07:00
ccd0
d6a6b5d2ac Store Last-Modified dates so Thread Watcher can receive 304 responses on first request. 2019-03-23 20:21:15 -07:00
ccd0
4b7b139311 Support If-Modified-Since in cross-site thread watcher requests. 2019-03-23 19:19:33 -07:00
ccd0
e77fa69c53 Move If-Modified-Since code to separate function $.whenModified 2019-03-23 13:03:45 -07:00
ccd0
5a49280be4 Occasionally check catalog.json on vichan boards due to last_modified API bug.
Also let manual thread watcher checks set lastChecked.
2019-03-22 23:20:10 -07:00
ccd0
b102e95613 Restore fake abort in thread watcher if real abort not available or doesn't go through; needed to retry. 2019-03-20 19:41:34 -07:00
ccd0
6ea1d4ca13 Offer cross-origin abort in userscripts if available. 2019-03-20 19:08:46 -07:00
ccd0
725d7d458e Use threads.json in thread watcher to reduce number of thread JSON checks. 2019-03-20 18:30:05 -07:00
ccd0
cafb7250c7 Simplify duplicated code for thread watcher requests. 2019-03-11 00:49:21 -07:00
ccd0
74268f78d5 Thread Watcher: Remove fake abort for cross-site requests. 2019-03-11 00:33:46 -07:00
ccd0
188422f1ae Replace CrossOrigin.json with simpler CrossOrigin.ajax and a CrossOrigin.cache making use of $.cache. 2019-03-10 21:11:43 -07:00
ccd0
52128775e1 Restore forced If-Modified-Since for intra-site thread watcher requests. 2019-03-08 03:30:01 -08:00
ccd0
4ca1b1450c Fix thread watcher highlighting when quoted on boards with unusual characters in name (e.g. some lainchan boards). 2019-03-01 10:13:21 -08:00
ccd0
a47449c834 Fix 'Auto Watch Reply' in corner cases when not all thread info is available. 2019-01-25 00:36:10 -08:00
ccd0
fbb54b58f7 Support refreshing threads in Thread Watcher from any site with 4chan-compatible JSON API. 2018-12-06 20:08:22 -08:00
ccd0
4c139b3b0f Support refreshing 4chan threads in Thread Watcher from other sites. 2018-12-06 18:20:21 -08:00
ccd0
ad16e13b61 Leave caching and conditional requests to the browser. Store last fetched post to skip needless rescans. 2018-12-06 15:46:40 -08:00
ccd0
e0ae7daaac Make site prefix optional, behind 'Show Site Prefix' preference in thread watcher menu. 2018-12-05 13:22:36 -08:00
ccd0
ef430050c0 Add prefixes to distinguish sites. 2018-12-05 12:42:34 -08:00
ccd0
670302a947 Any unread data for Tinyboard sites is currently inaccurate and should not be displayed. 2018-12-05 11:51:24 -08:00
ccd0
929fac05ca Transition from siteSoftware to extensible siteProperties. 2018-12-05 05:56:38 -08:00
ccd0
2b59c9e380 Show threads from other sites in watcher. 2018-12-04 20:08:04 -08:00
ccd0
1fbe76e3cd Support access to DataBoard data of other sites. 2018-12-04 17:43:07 -08:00
ccd0
406029ce19 Make cross-domain quotes of you light up thread watcher. 2018-11-24 23:50:56 -08:00
ccd0
f30ef0e068 Make URLs in thread watcher point to appropriate domain. #2143 2018-11-24 23:29:15 -08:00
ccd0
8be6bd3898 Add optional link to mark threads read from index. #625 2018-10-17 05:57:37 -07:00
ccd0
6a00c9f757 Only autorefresh thread watcher from current tab. 2018-05-10 02:30:24 -07:00
ccd0
1ea6f14384 Fix Thread Watcher links on Tinyboard. 2018-01-24 12:11:00 -08:00
ccd0
faa9291606 Fix unwanted appearance of Watch in menu. 2018-01-24 06:42:15 -08:00
ccd0
4acfec4d12 Turn thread watcher refreshing off outside 4chan until working. 2018-01-24 00:02:00 -08:00
ccd0
06c1ae29e3 Turn off Unread and related features on Tinyboard until working. 2018-01-23 23:52:34 -08:00
ccd0
f24ebbd648 Revert reversion of DataBoard / forceSync changes.
This reverts commit ea08bc882230289d675c58c64572d6a7bd0c4a7a.
2018-01-23 22:17:31 -08:00
ccd0
ea08bc8822 Revert "Asynchronous version of DataBoard.forceSync."
This reverts commit fbee3c2df256b5152efd0682904837f0e13b6411.

Revert "Eliminate $.forceSync from QuoteYou."

This reverts commit f924beb2801b232dcbfa04e6d9d1abb2f6810ec3.

Revert "Better protection against race conditions that can lead to data loss in DataBoard."

This reverts commit 8d0a6cf97f263e0735b3002466328285e5a37454.
2018-01-23 11:03:48 -08:00
ccd0
fbee3c2df2 Asynchronous version of DataBoard.forceSync. 2017-12-10 22:26:43 -08:00