From bcde8426c7c89ba7d48526ee18bac85a2de83b38 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 12 Sep 2012 17:37:24 +0200 Subject: [PATCH] Add "Connection error, or you are banned" back." --- 4chan_x.user.js | 6 +++++- script.coffee | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 517810ac4..cc1e7bf5c 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2456,7 +2456,11 @@ }, onerror: function() { QR.status(); - return QR.error('Connection error with sys.4chan.org.'); + return QR.error($.el('a', { + href: '//www.4chan.org/banned', + target: '_blank', + textContent: 'Connection error, or you are banned.' + })); } }; opts = { diff --git a/script.coffee b/script.coffee index dcd054683..60b11aa6d 100644 --- a/script.coffee +++ b/script.coffee @@ -1909,7 +1909,10 @@ QR = # Connection error, or # CORS disabled error on www.4chan.org/banned QR.status() - QR.error 'Connection error with sys.4chan.org.' + QR.error $.el 'a', + href: '//www.4chan.org/banned', + target: '_blank', + textContent: 'Connection error, or you are banned.' opts = form: $.formData post upCallbacks: