Release 4chan X v1.14.21.5.

This commit is contained in:
ccd0 2021-07-06 23:18:08 -07:00
parent a6f78ad1ec
commit cb68f4332e
15 changed files with 119 additions and 50 deletions

View File

@ -4,6 +4,9 @@
### v1.14.21
**v1.14.21.5** *(2021-07-07)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.21.5/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.21.5/builds/4chan-X-noupdate.crx)]
- Fix bug causing captcha to sometimes not work when replying from index.
**v1.14.21.4** *(2021-07-05)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.21.4/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.21.4/builds/4chan-X-noupdate.crx)]
- Preliminary support for new first-party captcha on 4chan.

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X beta
// @version 1.14.21.4
// @version 1.14.21.5
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X beta
// @version 1.14.21.4
// @version 1.14.21.5
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -218,7 +218,7 @@ docSet = function() {
};
g = {
VERSION: '1.14.21.4',
VERSION: '1.14.21.5',
NAMESPACE: '4chan X.',
sites: Object.create(null),
boards: Object.create(null)
@ -23752,8 +23752,20 @@ Captcha = {};
return $.after(QR.nodes.com.parentNode, root);
},
moreNeeded: function() {},
setup: function(focus) {
getThread: function() {
var boardID, threadID;
boardID = g.BOARD.ID;
if (QR.posts[0].thread === 'new') {
threadID = '0';
} else {
threadID = '' + QR.posts[0].thread;
}
return {
boardID: boardID,
threadID: threadID
};
},
setup: function(focus) {
if (!this.isEnabled) {
return;
}
@ -23762,8 +23774,7 @@ Captcha = {};
className: 'captcha-container'
});
$.prepend(this.nodes.root, this.nodes.container);
boardID = g.BOARD.ID;
threadID = '' + QR.posts[0].thread;
Captcha.t.currentThread = Captcha.t.getThread();
$.global(function() {
var el;
el = document.querySelector('#qr .captcha-container');
@ -23776,10 +23787,7 @@ Captcha = {};
}
}));
});
}, {
boardID: boardID,
threadID: threadID
});
}, Captcha.t.currentThread);
}
if (focus) {
return $('#t-resp').focus();
@ -23795,6 +23803,15 @@ Captcha = {};
$.rm(this.nodes.container);
return delete this.nodes.container;
},
updateThread: function() {
var boardID, newThread, ref, threadID;
ref = Captcha.t.currentThread, boardID = ref.boardID, threadID = ref.threadID;
newThread = Captcha.t.getThread();
if (!(newThread.boardID === boardID && newThread.threadID === threadID)) {
Captcha.t.destroy();
return Captcha.t.setup();
}
},
getOne: function() {
var i, key, len, ref, response;
response = {};
@ -25964,7 +25981,7 @@ QR = (function() {
}
_Class.prototype.rm = function() {
var index;
var base, index;
this["delete"]();
index = QR.posts.indexOf(this);
if (QR.posts.length === 1) {
@ -25974,7 +25991,8 @@ QR = (function() {
(QR.posts[index - 1] || QR.posts[index + 1]).select();
}
QR.posts.splice(index, 1);
return QR.status();
QR.status();
return typeof (base = QR.captcha).updateThread === "function" ? base.updateThread() : void 0;
};
_Class.prototype["delete"] = function() {
@ -26039,7 +26057,7 @@ QR = (function() {
};
_Class.prototype.save = function(input, forced) {
var name, prev;
var base, name, prev;
if (input.type === 'checkbox') {
this.spoiler = input.checked;
return;
@ -26054,6 +26072,9 @@ QR = (function() {
case 'thread':
(this.thread !== 'new' ? $.addClass : $.rmClass)(QR.nodes.el, 'reply-to-thread');
QR.status();
if (typeof (base = QR.captcha).updateThread === "function") {
base.updateThread();
}
break;
case 'com':
this.updateComment();
@ -26448,7 +26469,7 @@ QR = (function() {
};
_Class.prototype.drop = function() {
var el, index, newIndex, oldIndex, post;
var base, el, index, newIndex, oldIndex, post;
$.rmClass(this, 'over');
if (!this.draggable) {
return;
@ -26465,7 +26486,8 @@ QR = (function() {
(oldIndex < newIndex ? $.after : $.before)(this, el);
post = QR.posts.splice(oldIndex, 1)[0];
QR.posts.splice(newIndex, 0, post);
return QR.status();
QR.status();
return typeof (base = QR.captcha).updateThread === "function" ? base.updateThread() : void 0;
};
return _Class;

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
// @version 1.14.21.4
// @version 1.14.21.5
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -218,7 +218,7 @@ docSet = function() {
};
g = {
VERSION: '1.14.21.4',
VERSION: '1.14.21.5',
NAMESPACE: '4chan X.',
sites: Object.create(null),
boards: Object.create(null)
@ -23752,8 +23752,20 @@ Captcha = {};
return $.after(QR.nodes.com.parentNode, root);
},
moreNeeded: function() {},
setup: function(focus) {
getThread: function() {
var boardID, threadID;
boardID = g.BOARD.ID;
if (QR.posts[0].thread === 'new') {
threadID = '0';
} else {
threadID = '' + QR.posts[0].thread;
}
return {
boardID: boardID,
threadID: threadID
};
},
setup: function(focus) {
if (!this.isEnabled) {
return;
}
@ -23762,8 +23774,7 @@ Captcha = {};
className: 'captcha-container'
});
$.prepend(this.nodes.root, this.nodes.container);
boardID = g.BOARD.ID;
threadID = '' + QR.posts[0].thread;
Captcha.t.currentThread = Captcha.t.getThread();
$.global(function() {
var el;
el = document.querySelector('#qr .captcha-container');
@ -23776,10 +23787,7 @@ Captcha = {};
}
}));
});
}, {
boardID: boardID,
threadID: threadID
});
}, Captcha.t.currentThread);
}
if (focus) {
return $('#t-resp').focus();
@ -23795,6 +23803,15 @@ Captcha = {};
$.rm(this.nodes.container);
return delete this.nodes.container;
},
updateThread: function() {
var boardID, newThread, ref, threadID;
ref = Captcha.t.currentThread, boardID = ref.boardID, threadID = ref.threadID;
newThread = Captcha.t.getThread();
if (!(newThread.boardID === boardID && newThread.threadID === threadID)) {
Captcha.t.destroy();
return Captcha.t.setup();
}
},
getOne: function() {
var i, key, len, ref, response;
response = {};
@ -25964,7 +25981,7 @@ QR = (function() {
}
_Class.prototype.rm = function() {
var index;
var base, index;
this["delete"]();
index = QR.posts.indexOf(this);
if (QR.posts.length === 1) {
@ -25974,7 +25991,8 @@ QR = (function() {
(QR.posts[index - 1] || QR.posts[index + 1]).select();
}
QR.posts.splice(index, 1);
return QR.status();
QR.status();
return typeof (base = QR.captcha).updateThread === "function" ? base.updateThread() : void 0;
};
_Class.prototype["delete"] = function() {
@ -26039,7 +26057,7 @@ QR = (function() {
};
_Class.prototype.save = function(input, forced) {
var name, prev;
var base, name, prev;
if (input.type === 'checkbox') {
this.spoiler = input.checked;
return;
@ -26054,6 +26072,9 @@ QR = (function() {
case 'thread':
(this.thread !== 'new' ? $.addClass : $.rmClass)(QR.nodes.el, 'reply-to-thread');
QR.status();
if (typeof (base = QR.captcha).updateThread === "function") {
base.updateThread();
}
break;
case 'com':
this.updateComment();
@ -26448,7 +26469,7 @@ QR = (function() {
};
_Class.prototype.drop = function() {
var el, index, newIndex, oldIndex, post;
var base, el, index, newIndex, oldIndex, post;
$.rmClass(this, 'over');
if (!this.draggable) {
return;
@ -26465,7 +26486,8 @@ QR = (function() {
(oldIndex < newIndex ? $.after : $.before)(this, el);
post = QR.posts.splice(oldIndex, 1)[0];
QR.posts.splice(newIndex, 0, post);
return QR.status();
QR.status();
return typeof (base = QR.captcha).updateThread === "function" ? base.updateThread() : void 0;
};
return _Class;

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
// @version 1.14.21.4
// @version 1.14.21.5
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
// @version 1.14.21.4
// @version 1.14.21.5
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -218,7 +218,7 @@ docSet = function() {
};
g = {
VERSION: '1.14.21.4',
VERSION: '1.14.21.5',
NAMESPACE: '4chan X.',
sites: Object.create(null),
boards: Object.create(null)
@ -23752,8 +23752,20 @@ Captcha = {};
return $.after(QR.nodes.com.parentNode, root);
},
moreNeeded: function() {},
setup: function(focus) {
getThread: function() {
var boardID, threadID;
boardID = g.BOARD.ID;
if (QR.posts[0].thread === 'new') {
threadID = '0';
} else {
threadID = '' + QR.posts[0].thread;
}
return {
boardID: boardID,
threadID: threadID
};
},
setup: function(focus) {
if (!this.isEnabled) {
return;
}
@ -23762,8 +23774,7 @@ Captcha = {};
className: 'captcha-container'
});
$.prepend(this.nodes.root, this.nodes.container);
boardID = g.BOARD.ID;
threadID = '' + QR.posts[0].thread;
Captcha.t.currentThread = Captcha.t.getThread();
$.global(function() {
var el;
el = document.querySelector('#qr .captcha-container');
@ -23776,10 +23787,7 @@ Captcha = {};
}
}));
});
}, {
boardID: boardID,
threadID: threadID
});
}, Captcha.t.currentThread);
}
if (focus) {
return $('#t-resp').focus();
@ -23795,6 +23803,15 @@ Captcha = {};
$.rm(this.nodes.container);
return delete this.nodes.container;
},
updateThread: function() {
var boardID, newThread, ref, threadID;
ref = Captcha.t.currentThread, boardID = ref.boardID, threadID = ref.threadID;
newThread = Captcha.t.getThread();
if (!(newThread.boardID === boardID && newThread.threadID === threadID)) {
Captcha.t.destroy();
return Captcha.t.setup();
}
},
getOne: function() {
var i, key, len, ref, response;
response = {};
@ -25964,7 +25981,7 @@ QR = (function() {
}
_Class.prototype.rm = function() {
var index;
var base, index;
this["delete"]();
index = QR.posts.indexOf(this);
if (QR.posts.length === 1) {
@ -25974,7 +25991,8 @@ QR = (function() {
(QR.posts[index - 1] || QR.posts[index + 1]).select();
}
QR.posts.splice(index, 1);
return QR.status();
QR.status();
return typeof (base = QR.captcha).updateThread === "function" ? base.updateThread() : void 0;
};
_Class.prototype["delete"] = function() {
@ -26039,7 +26057,7 @@ QR = (function() {
};
_Class.prototype.save = function(input, forced) {
var name, prev;
var base, name, prev;
if (input.type === 'checkbox') {
this.spoiler = input.checked;
return;
@ -26054,6 +26072,9 @@ QR = (function() {
case 'thread':
(this.thread !== 'new' ? $.addClass : $.rmClass)(QR.nodes.el, 'reply-to-thread');
QR.status();
if (typeof (base = QR.captcha).updateThread === "function") {
base.updateThread();
}
break;
case 'com':
this.updateComment();
@ -26448,7 +26469,7 @@ QR = (function() {
};
_Class.prototype.drop = function() {
var el, index, newIndex, oldIndex, post;
var base, el, index, newIndex, oldIndex, post;
$.rmClass(this, 'over');
if (!this.draggable) {
return;
@ -26465,7 +26486,8 @@ QR = (function() {
(oldIndex < newIndex ? $.after : $.before)(this, el);
post = QR.posts.splice(oldIndex, 1)[0];
QR.posts.splice(newIndex, 0, post);
return QR.status();
QR.status();
return typeof (base = QR.captcha).updateThread === "function" ? base.updateThread() : void 0;
};
return _Class;

Binary file not shown.

View File

@ -3,7 +3,7 @@
"4chan-x@4chan-x.net": {
"updates": [
{
"version": "1.14.21.4",
"version": "1.14.21.5",
"update_link": "https://www.4chan-x.net/builds/4chan-X-beta.crx"
}
]

View File

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='lacclbnghgdicfifcamcmcnilckjamag'>
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.14.21.4' />
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.14.21.5' />
</app>
</gupdate>

View File

@ -3,7 +3,7 @@
"4chan-x@4chan-x.net": {
"updates": [
{
"version": "1.14.21.4",
"version": "1.14.21.5",
"update_link": "https://www.4chan-x.net/builds/4chan-X.crx"
}
]

View File

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='lacclbnghgdicfifcamcmcnilckjamag'>
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.14.21.4' />
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.14.21.5' />
</app>
</gupdate>

View File

@ -1,4 +1,4 @@
{
"version": "1.14.21.4",
"date": "2021-07-05T20:23:27.050Z"
"version": "1.14.21.5",
"date": "2021-07-07T06:16:45.892Z"
}