124 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
f12ba5ee64 Opera is being weird with notifications. 2013-11-19 11:09:14 +01:00
Mayhem
9eaf16576c Better return guard for the page visibility polyfill. 2013-11-10 04:20:00 +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
de82bd3e45 Give CS loops a hand. 2013-08-23 15:34:42 +02:00
Mayhem
7c9f43a5f0 Fix Polyfill.notificationPermission on Opera.
Opera doesn't have notifications.
2013-08-17 23:00:06 +02:00
Mayhem
5742405f67 Add desktop notification permission granting setting and notice. 2013-08-17 22:37:30 +02:00
Mayhem
8135e93db8 On-the-fly QR filename editing. 2013-08-15 00:24:40 +02:00
Mayhem
4c6323dc6e Fx <23 doesn't have HTMLCanvasElement? 2013-08-13 20:58:06 +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
ffd98de110 Polyfill canvas toBlob(). 2013-08-11 13:09:25 +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
41b8401399 Better, simpler visibility API.
No need to polyfill for Gecko anymore.
2013-05-27 20:13:29 +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
a2e87f1200 Structure.
God damn War Thunder, download faster!
2013-04-26 17:40:51 +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
59df1a3e07 Fix opening QR scrolling us to the end of the page. 2013-04-15 18:59:58 +02:00
Nicolas Stepien
6a8ebfed0d Fix dead quotelinks inside clones. 2013-04-15 18:34:17 +02:00