Remove more obsolete code from when the request was redirected immediately to the ban page.
(It is now redirected via JS with a 3-second timer.)
This commit is contained in:
parent
909f70c6e6
commit
626e39bd15
@ -696,13 +696,7 @@ QR =
|
||||
post.unlock()
|
||||
|
||||
resDoc = req.response
|
||||
if ban = $ '.banType', resDoc # banned/warning
|
||||
err = $.el 'span',
|
||||
if ban.textContent.toLowerCase() is 'banned'
|
||||
<%= html('You are banned on &{$(".board", resDoc)}! ;_;<br>Click <a href="//www.4chan.org/banned" target="_blank">here</a> to see the reason.') %>
|
||||
else
|
||||
<%= html('You were issued a warning on &{$(".board", resDoc)} as &{$(".nameBlock", resDoc)}.<br>Reason: &{$(".reason", resDoc)}') %>
|
||||
else if err = resDoc.getElementById 'errmsg' # error!
|
||||
if (err = resDoc.getElementById 'errmsg') # error!
|
||||
$('a', err)?.target = '_blank' # duplicate image link
|
||||
else if resDoc.title isnt 'Post successful!'
|
||||
err = 'Connection error with sys.4chan.org.'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user