From b01dfd42ddb6bfd163f936cb7a75ff74fc2b0403 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 19 Feb 2012 17:44:37 +0100 Subject: [PATCH] Remove ban checking from the updater. Bans only affect sys.4chan.org from now on. --- 4chan_x.user.js | 5 ----- script.coffee | 6 ------ 2 files changed, 11 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 37357dd09..349a12726 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2462,11 +2462,6 @@ body = $.el('body', { innerHTML: this.responseText }); - if ($('title', body).textContent === '4chan - Banned') { - updater.count.textContent = 'Banned'; - updater.count.className = 'warning'; - return; - } id = ((_ref = $('td[id]', updater.br.previousElementSibling)) != null ? _ref.id : void 0) || 0; nodes = []; _ref2 = $$('.reply', body).reverse(); diff --git a/script.coffee b/script.coffee index 5670b50d5..fb00a8b0d 100644 --- a/script.coffee +++ b/script.coffee @@ -1958,12 +1958,6 @@ updater = body = $.el 'body', innerHTML: @responseText - #this only works on Chrome because of cross origin policy - if $('title', body).textContent is '4chan - Banned' - updater.count.textContent = 'Banned' - updater.count.className = 'warning' - return - id = $('td[id]', updater.br.previousElementSibling)?.id or 0 nodes = [] for reply in $$('.reply', body).reverse()