93 Commits

Author SHA1 Message Date
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
bf2af04ddb Fix setArea never actually retrying after an error. 2014-02-10 17:06:25 +01:00
Mayhem
5da0344a45 Drop data that exceeds QUOTA_BYTES_PER_ITEM. 2014-02-04 15:38:35 +01:00
Mayhem
0b00e393b6 Harden the Chrome storage API lib.
Clear/delete should clear/delete data that's about to get set.
2014-02-04 15:15:02 +01:00
Mayhem
9a1eab3195 Slightly safer Chrome storage setting.
try/catch is probably useless.
2014-01-31 16:13:43 +01:00
Mayhem
fdca68fe38 Update $.rmAll according to a new benchmark. 2014-01-27 11:21:32 +01:00
Mayhem
06e5ce4ef6 It is now safe to use Node::remove. 2014-01-26 21:25:56 +01:00
Mayhem
c7c8ea9ec5 Add a Reset Settings button. 2014-01-22 16:33:08 +01:00
Mayhem
c49579efcd Attemps to fix possible race condition in setArea(). #1342 2014-01-21 20:01:58 +01:00
Mayhem
508ab4f884 Make $.addClass/rmClass use multiple classes at once. 2014-01-21 15:30:47 +01:00
Mayhem
710655f13e Use xhr.responseType = 'json'. 2014-01-21 14:46:26 +01:00
Mayhem
b5a1c3a287 Don't call chrome.storage[area].set with empty data. 2014-01-21 09:11:43 +01:00
Mayhem
525b8c7658 Handle chrome.storage[area].set errors better, retry every minute. 2013-12-24 11:36:31 +01:00
Mayhem
7e8fd31733 Toggle the pagelist visibility via CSS to avoid a crash when the index update is done before the element exists.
Also only send the If-Modified-Since HTTP header when we have something significant to send.
2013-11-02 19:21:05 +01:00
Mayhem
092d9317e0 Add sorting options by bump order and creation date. 2013-11-02 19:21:04 +01:00
Mayhem
5157954b09 Sync keybinds across tabs. 2013-10-24 02:00:09 +02:00
Mayhem
8135e93db8 On-the-fly QR filename editing. 2013-08-15 00:24:40 +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
0b55e34361 Allow fetching posts for archives that require credentials. 2013-08-09 12:41:59 +02:00
Mayhem
39f30c1d0e Slightly simplify $.ajax. 2013-08-07 19:55:25 +02:00
Mayhem
b36cf54d83 Make use of a few CoffeeScript filters. 2013-08-05 23:30:39 +02:00
Mayhem
6d3afcd005 Simplify $.open with GM_openInTab. 2013-08-02 21:13:32 +02:00
Mayhem
61cfc9a62e Merge pull request #1168 from MayhemYDG/GM1.10
Remove $.open workaround.
2013-07-11 15:30:45 -07: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
Mayhem
d154bab227 Simpler d.readyState usage. 2013-06-22 22:14:59 +02:00
Mayhem
598bbb8274 Log the message too. 2013-06-08 21:08:03 +02:00
Mayhem
5c5894198d Log chrome.runtime.lastErrors when getting.
Don't reset `items`, no need to. crbug.com/245798
2013-06-08 21:04:23 +02:00
Mayhem
64b04e5c6a Remove $.open workaround. 2013-05-23 23:06:58 +02:00
Mayhem
388c8b9d1a Fix withCredentials on synchronous XHRs. 2013-05-20 02:46:34 +02:00
Mayhem
11f3ba2647 @ 2013-05-19 19:03:20 +02:00
Mayhem
2b1ef422ca Tiny $.cache fix. 2013-05-18 18:52:11 +02:00
Nicolas Stepien
6d306d55d8 Better error logging. 2013-04-29 03:33:23 +02:00
Nicolas Stepien
03ec22aa92 Fix #1066. 2013-04-26 04:30:52 +02:00
Nicolas Stepien
11b51df975 Make $.open depend on the build target. 2013-04-26 02:34:57 +02:00
Nicolas Stepien
cede04f144 Fix $.debounce calling the function twice. 2013-04-26 02:24:13 +02:00
Nicolas Stepien
d32e9c8ef6 Debounce $.set on Chrome. Should help #1018. 2013-04-26 02:07:57 +02:00
Nicolas Stepien
c00fad9bd3 Don't extend $. 2013-04-25 01:58:29 +02:00
Nicolas Stepien
8216e1f714 Fix infinite loop when switching from the filter tab in the settings.
MAXIMUM
OVER
RUSTLE
2013-04-16 06:18:52 +02:00
Nicolas Stepien
be68f4c78a Get rid of $.engine. 2013-04-15 19:44:01 +02:00
Nicolas Stepien
0bccde09dd Close #1024 2013-04-14 22:04:50 +02:00
Nicolas Stepien
0ff0b14d27 Add $.rmAll.
Up to 60 000 times faster than innerHTML = null! (wtf)
Crazy stuff.
2013-04-14 20:16:33 +02:00
Nicolas Stepien
766be903b6 Use Element.remove() in $.rm when possible. 2013-04-13 18:01:09 +02:00
Nicolas Stepien
30c76eb81d Don't send me your credentials when you POST errors thank you. 2013-04-07 21:54:18 +02:00
Nicolas Stepien
a5c228fda8 !sync 2013-04-07 21:46:04 +02:00
Nicolas Stepien
b09f790767 POST caught errors to me. 2013-04-07 21:41:31 +02:00
Nicolas Stepien
c79bb318b2 Cache requests to threads.json. 2013-04-05 00:16:42 +02:00
Nicolas Stepien
cd82bce655 Clean the catalog manually.
Uuuuuuggghhhhh.
2013-04-04 23:51:17 +02:00
Nicolas Stepien
dda20916b4 Fix $.set for userjs/userscript. #968
Fix typo in $.delete for userscript.
Don't use `arguments` for $.get/$.set.
2013-04-03 17:31:51 +02:00
Nicolas Stepien
9bd3ff0426 Less array building. 2013-04-03 16:59:47 +02:00
Nicolas Stepien
ded92b94c2 Allow $.set to save multiple items at once.
Fix importing watched threads from v2.
2013-04-02 13:34:34 +02:00