Fix QR captcha and new thread redirection. #932
This commit is contained in:
parent
53d4f5d71d
commit
c788e6e8ae
@ -6056,7 +6056,7 @@
|
||||
captcha: {
|
||||
init: function() {
|
||||
var _this = this;
|
||||
if (__indexOf.call(d.cookie, 'pass_enabled=') < 0) {
|
||||
if (__indexOf.call(d.cookie, 'pass_enabled=') >= 0) {
|
||||
return;
|
||||
}
|
||||
if (!(this.isEnabled = !!$.id('captchaFormPart'))) {
|
||||
@ -6428,7 +6428,7 @@
|
||||
});
|
||||
QR.cooldown.auto = QR.replies.length > 1;
|
||||
if (threadID === '0') {
|
||||
$.open("/" + g.BOARD + "/res/" + postID);
|
||||
$.open("//boards.4chan.org//" + g.BOARD + "/res/" + postID);
|
||||
} else if (g.VIEW === 'reply' && !QR.cooldown.auto) {
|
||||
$.open("//boards.4chan.org/" + g.BOARD + "/res/" + threadID + "#p" + postID);
|
||||
}
|
||||
|
||||
@ -456,7 +456,7 @@ QR =
|
||||
|
||||
captcha:
|
||||
init: ->
|
||||
return unless 'pass_enabled=' in d.cookie
|
||||
return if 'pass_enabled=' in d.cookie
|
||||
return unless @isEnabled = !!$.id 'captchaFormPart'
|
||||
if $.id 'recaptcha_challenge_field_holder'
|
||||
@ready()
|
||||
@ -798,7 +798,7 @@ QR =
|
||||
QR.cooldown.auto = QR.replies.length > 1
|
||||
|
||||
if threadID is '0' # new thread
|
||||
$.open "/#{g.BOARD}/res/#{postID}"
|
||||
$.open "//boards.4chan.org/#{g.BOARD}/res/#{postID}"
|
||||
else if g.VIEW is 'reply' and !QR.cooldown.auto # posting from the index
|
||||
$.open "//boards.4chan.org/#{g.BOARD}/res/#{threadID}#p#{postID}"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user