41 Commits

Author SHA1 Message Date
ccd0
f96b24a792 Support repsonseType: text in CrossOrigin.ajax. 2019-07-05 16:20:30 -07:00
ccd0
a2ed86e4f0 Try ordinary AJAX request for fetching files if GM.xmlHttpRequest not available. 2019-04-24 03:30:07 -07:00
ccd0
c3054640a8 Handle errors thrown by GM.xmlHttpRequest. 2019-04-24 03:12:48 -07:00
ccd0
69a56f9e05 Update ad blocker workaround for 4channel domain. 2019-04-24 03:11:36 -07:00
ccd0
03167b32e7 Always use both responseType: arraybuffer and overrideMimeType fallback, and convert when response isn't an ArrayBuffer. 2019-04-11 08:10:52 -07:00
ccd0
8a04d6b249 Revert "Do tests to determine whether to use workaround for binary data instead of relying on version number."
This reverts commit 0048da77f6bf93d902359e81c93f457b8c7399db.
2019-04-11 07:43:34 -07:00
ccd0
c2d1f7ef4c Remove query string from filename in Post from URL feature. 2019-04-11 06:45:10 -07:00
ccd0
0048da77f6 Do tests to determine whether to use workaround for binary data instead of relying on version number. 2019-04-11 06:37:24 -07:00
ccd0
5f52cce954 Fix issue making WebM title fetching needlessly slow on Chrome extension. 2019-04-11 05:36:39 -07:00
ccd0
2120c93bf0 Reorganize CrossOrigin.binary. 2019-04-11 05:33:39 -07:00
ccd0
84b52e2a40 Tolerate nothing being returned from GM.xmlHttpRequest #2256 2019-03-30 12:14:52 -07:00
ccd0
e37b73a783 Default do-nothing handler for onloadend in CrossOrigin.ajax 2019-03-24 06:27:58 -07:00
ccd0
2c4b77e8d7 Also combine options and extra in CrossOrigin.ajax and in call from $.cache.
Fixes bugs from 71896af275ba612384e41bc05ab3c5acf78e9cbf.
2019-03-24 04:49:41 -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
7b2dee7279 Add header support to CrossOrigin.ajax 2019-03-23 19:07:48 -07:00
ccd0
6ea1d4ca13 Offer cross-origin abort in userscripts if available. 2019-03-20 19:08:46 -07:00
ccd0
f055869286 Remove unused parameter from $.cache 2019-03-10 23:01:38 -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
78a79f1942 Let $.cache report connection errors. 2019-03-09 02:13:27 -08:00
ccd0
a94d76d84b Let the default responseType in $.ajax always be "json" regardless of URL. 2019-03-08 20:45:53 -08:00
ccd0
8e22de0ca0 Request additional permissions immediately on clicking 'Post from URL' and only then. #2230 2019-03-08 15:21:43 -08:00
ccd0
c86fadf0f3 Generalize event page request mechanism. 2019-03-08 15:03:29 -08:00
ccd0
4c139b3b0f Support refreshing 4chan threads in Thread Watcher from other sites. 2018-12-06 18:20:21 -08:00
ccd0
8d20d0b4ec Use event page for downloading file in all cases due to AJAX blocking. #2066 2018-09-19 14:00:16 -07:00
ccd0
5afb980a38 Use of background page now needed in Chrome extension for all cross-origin requests. 2018-09-18 00:57:18 -07:00
ccd0
680fc3384f Use CrossOrigin.json for fetching archive list. 2018-09-18 00:49:23 -07:00
ccd0
898816d211 Revise CrossOrigin.json interface. 2018-09-18 00:26:43 -07:00
ccd0
1f7846502d Fall back to ordinary AJAX request if userscript manager lacks GM_xmlhttpRequest. 2018-09-17 20:50:00 -07:00
ccd0
4226a18a6d Preliminary support for Greasemonkey 4. 2017-09-28 10:51:08 -07:00
ccd0
adfc3babc9 Revert Data Saver workarounds. They didn't work. #1241
Revert "Fix bug from 4f9f1941be2aea72b4d8145a62d9835087fbfc39. #1241"

This reverts commit 9e3d33ffd488ef63af1340eeacb146c698a0a7b9.

Revert "Workaround for Chrome Compression Proxy converting images to WebP. #1241"

This reverts commit 4f9f1941be2aea72b4d8145a62d9835087fbfc39.
2017-01-07 04:11:19 -08:00
ccd0
9e3d33ffd4 Fix bug from 4f9f1941be2aea72b4d8145a62d9835087fbfc39. #1241 2017-01-07 02:05:51 -08:00
ccd0
4f9f1941be Workaround for Chrome Compression Proxy converting images to WebP. #1241 2017-01-06 09:35:44 -08:00
ccd0
0f6a98e5e9 Use is.4chan.org for building posts if 'Use Faster Image Host' is off.
Also consolidate the image host related code.
2017-01-05 19:12:42 -08:00
ccd0
c5f175ed13 Add support for is2.4chan.org host. 2017-01-05 13:01:17 -08:00
ccd0
f9d1f2c766 Add basic support for is.4chan.org domain. #1141 2016-10-15 00:48:47 -07:00
ccd0
2a13c80190 Merge commit 'e1b0d62ceb258f016377517182497d3572fae095' 2016-07-09 15:35:52 -07:00
ccd0
6f8e0a3bbd Make 'all websites' permission optional. #793 2016-07-01 01:44:16 -07:00
ccd0
e1b0d62ceb Have return hack be added by the compilation script. 2016-06-12 00:25:58 -07:00
ccd0
58da030e3b Remove obsolete workarounds for fixed JS Blocker bugs. #904 2016-06-08 23:09:58 -07:00
ccd0
64bb62a075 No more having to hack the contents of the coffee-generated JS. 2016-04-19 16:27:05 -07:00
ccd0
0488f30197 Break up src/General. 2016-04-15 22:09:38 -07:00