From b809fd97ab70a78c63af5e71e9690d90d6872d97 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 18 Sep 2012 20:55:19 +0200 Subject: [PATCH] fix 4chan pass on fx --- 4chan_x.user.js | 3 +++ changelog | 4 ++-- script.coffee | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 4c5179b44..93548709c 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -357,6 +357,9 @@ } $.extend(r, callbacks); $.extend(r.upload, upCallbacks); + if (type === 'post') { + r.withCredentials = true; + } r.send(form); return r; }, diff --git a/changelog b/changelog index c5a00642d..706540354 100644 --- a/changelog +++ b/changelog @@ -1,11 +1,11 @@ master +- Mayhem + Fix 4chan Pass with QR on Firefox. 2.35.1 - Mayhem Add support for 4chan Pass. You can now use 'Enter' in keybind combinations. - !!! This is not working on Firefox because of Greasemonkey/Scriptish limitations, see - https://github.com/greasemonkey/greasemonkey/issues/1630 2.35.0 - Mayhem diff --git a/script.coffee b/script.coffee index eac00f189..77295ce64 100644 --- a/script.coffee +++ b/script.coffee @@ -290,6 +290,7 @@ $.extend $, r.setRequestHeader key, val $.extend r, callbacks $.extend r.upload, upCallbacks + r.withCredentials = true if type is 'post' r.send form r cache: (url, cb) ->