Release 4chan X v1.14.4.6.

This commit is contained in:
ccd0 2018-11-25 00:15:05 -08:00
parent 406029ce19
commit 90a1521209
15 changed files with 44 additions and 38 deletions

View File

@ -4,6 +4,12 @@
### v1.14.4
**v1.14.4.6** *(2018-11-25)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.4.6/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.4.6/builds/4chan-X-noupdate.crx)]
- Use now working sys.4channel.org for posting to worksafe boards; should fix some issues with posting. #2140 #2149
- Fix catalog/search link rewriting. #2151
- Make URLs in thread watcher point to appropriate domain. #2143
- Make cross-domain quotes of you light up thread watcher.
**v1.14.4.5** *(2018-11-23)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.4.5/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.4.5/builds/4chan-X-noupdate.crx)]
- Fix bug in previous version causing 4channel.org to be seen as separate site in thread watcher etc.

Binary file not shown.

View File

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

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X beta
// @version 1.14.4.5
// @version 1.14.4.6
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -198,7 +198,7 @@ docSet = function() {
};
g = {
VERSION: '1.14.4.5',
VERSION: '1.14.4.6',
NAMESPACE: '4chan X.',
boards: {}
};
@ -7272,7 +7272,7 @@ SW = {};
thread: function(arg) {
var boardID, threadID;
boardID = arg.boardID, threadID = arg.threadID;
return boardID + "/res/" + threadID + ".html";
return location.origin + "/" + boardID + "/res/" + threadID + ".html";
}
},
selectors: {
@ -7380,7 +7380,7 @@ SW = {};
thread: function(arg) {
var boardID, threadID;
boardID = arg.boardID, threadID = arg.threadID;
return boardID + "/thread/" + threadID;
return location.protocol + "//" + (BoardConfig.domain(boardID)) + "/" + boardID + "/thread/" + threadID;
}
},
selectors: {
@ -16681,8 +16681,8 @@ CatalogLinks = (function() {
ref = $$('a', this.nodes.comment);
for (i = 0, len = ref.length; i < len; i++) {
a = ref[i];
if (m = a.href.match(/^https?:\/\/boards\.4chan(?:nel)?\.org\/([^\/]+)\/catalog(#s=.*)?/)) {
a.href = "//boards.4chan(?:nel)?.org/" + m[1] + "/" + (m[2] || '#catalog');
if (m = a.href.match(/^https?:\/\/(boards\.4chan(?:nel)?\.org\/[^\/]+)\/catalog(#s=.*)?/)) {
a.href = "//" + m[1] + "/" + (m[2] || '#catalog');
}
}
},
@ -20080,7 +20080,7 @@ ThreadWatcher = (function() {
continue;
}
quotesYou = false;
regexp = /<a [^>]*\bhref="(?:\/([^\/]+)\/thread\/)?(\d+)?(?:#p(\d+))?"/g;
regexp = /<a [^>]*\bhref="(?:(?:\/\/boards\.4chan(?:nel)?\.org)?\/([^\/]+)\/thread\/)?(\d+)?(?:#p(\d+))?"/g;
while (match = regexp.exec(postObj.com)) {
if (QuoteYou.db.get({
boardID: match[1] || boardID,
@ -20158,10 +20158,10 @@ ThreadWatcher = (function() {
excerpt = data.excerpt;
excerpt || (excerpt = "/" + boardID + "/ - No." + threadID);
link = $.el('a', {
href: "/" + (Site.urls.thread({
href: Site.urls.thread({
boardID: boardID,
threadID: threadID
})),
}),
title: excerpt,
className: 'watcher-link'
});
@ -22527,7 +22527,7 @@ QR = (function() {
extra.form.append('g-recaptcha-response', response.response);
}
}
QR.req = $.ajax("https://sys.4chan.org/" + g.BOARD + "/post", options, extra);
QR.req = $.ajax("https://sys." + (location.hostname.split('.')[1]) + ".org/" + g.BOARD + "/post", options, extra);
return QR.req.progress = '...';
};
if (typeof captcha === 'function') {

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
// @version 1.14.4.5
// @version 1.14.4.6
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -198,7 +198,7 @@ docSet = function() {
};
g = {
VERSION: '1.14.4.5',
VERSION: '1.14.4.6',
NAMESPACE: '4chan X.',
boards: {}
};
@ -7272,7 +7272,7 @@ SW = {};
thread: function(arg) {
var boardID, threadID;
boardID = arg.boardID, threadID = arg.threadID;
return boardID + "/res/" + threadID + ".html";
return location.origin + "/" + boardID + "/res/" + threadID + ".html";
}
},
selectors: {
@ -7380,7 +7380,7 @@ SW = {};
thread: function(arg) {
var boardID, threadID;
boardID = arg.boardID, threadID = arg.threadID;
return boardID + "/thread/" + threadID;
return location.protocol + "//" + (BoardConfig.domain(boardID)) + "/" + boardID + "/thread/" + threadID;
}
},
selectors: {
@ -16681,8 +16681,8 @@ CatalogLinks = (function() {
ref = $$('a', this.nodes.comment);
for (i = 0, len = ref.length; i < len; i++) {
a = ref[i];
if (m = a.href.match(/^https?:\/\/boards\.4chan(?:nel)?\.org\/([^\/]+)\/catalog(#s=.*)?/)) {
a.href = "//boards.4chan(?:nel)?.org/" + m[1] + "/" + (m[2] || '#catalog');
if (m = a.href.match(/^https?:\/\/(boards\.4chan(?:nel)?\.org\/[^\/]+)\/catalog(#s=.*)?/)) {
a.href = "//" + m[1] + "/" + (m[2] || '#catalog');
}
}
},
@ -20080,7 +20080,7 @@ ThreadWatcher = (function() {
continue;
}
quotesYou = false;
regexp = /<a [^>]*\bhref="(?:\/([^\/]+)\/thread\/)?(\d+)?(?:#p(\d+))?"/g;
regexp = /<a [^>]*\bhref="(?:(?:\/\/boards\.4chan(?:nel)?\.org)?\/([^\/]+)\/thread\/)?(\d+)?(?:#p(\d+))?"/g;
while (match = regexp.exec(postObj.com)) {
if (QuoteYou.db.get({
boardID: match[1] || boardID,
@ -20158,10 +20158,10 @@ ThreadWatcher = (function() {
excerpt = data.excerpt;
excerpt || (excerpt = "/" + boardID + "/ - No." + threadID);
link = $.el('a', {
href: "/" + (Site.urls.thread({
href: Site.urls.thread({
boardID: boardID,
threadID: threadID
})),
}),
title: excerpt,
className: 'watcher-link'
});
@ -22527,7 +22527,7 @@ QR = (function() {
extra.form.append('g-recaptcha-response', response.response);
}
}
QR.req = $.ajax("https://sys.4chan.org/" + g.BOARD + "/post", options, extra);
QR.req = $.ajax("https://sys." + (location.hostname.split('.')[1]) + ".org/" + g.BOARD + "/post", options, extra);
return QR.req.progress = '...';
};
if (typeof captcha === 'function') {

Binary file not shown.

View File

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

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
// @version 1.14.4.5
// @version 1.14.4.6
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -198,7 +198,7 @@ docSet = function() {
};
g = {
VERSION: '1.14.4.5',
VERSION: '1.14.4.6',
NAMESPACE: '4chan X.',
boards: {}
};
@ -7272,7 +7272,7 @@ SW = {};
thread: function(arg) {
var boardID, threadID;
boardID = arg.boardID, threadID = arg.threadID;
return boardID + "/res/" + threadID + ".html";
return location.origin + "/" + boardID + "/res/" + threadID + ".html";
}
},
selectors: {
@ -7380,7 +7380,7 @@ SW = {};
thread: function(arg) {
var boardID, threadID;
boardID = arg.boardID, threadID = arg.threadID;
return boardID + "/thread/" + threadID;
return location.protocol + "//" + (BoardConfig.domain(boardID)) + "/" + boardID + "/thread/" + threadID;
}
},
selectors: {
@ -16681,8 +16681,8 @@ CatalogLinks = (function() {
ref = $$('a', this.nodes.comment);
for (i = 0, len = ref.length; i < len; i++) {
a = ref[i];
if (m = a.href.match(/^https?:\/\/boards\.4chan(?:nel)?\.org\/([^\/]+)\/catalog(#s=.*)?/)) {
a.href = "//boards.4chan(?:nel)?.org/" + m[1] + "/" + (m[2] || '#catalog');
if (m = a.href.match(/^https?:\/\/(boards\.4chan(?:nel)?\.org\/[^\/]+)\/catalog(#s=.*)?/)) {
a.href = "//" + m[1] + "/" + (m[2] || '#catalog');
}
}
},
@ -20080,7 +20080,7 @@ ThreadWatcher = (function() {
continue;
}
quotesYou = false;
regexp = /<a [^>]*\bhref="(?:\/([^\/]+)\/thread\/)?(\d+)?(?:#p(\d+))?"/g;
regexp = /<a [^>]*\bhref="(?:(?:\/\/boards\.4chan(?:nel)?\.org)?\/([^\/]+)\/thread\/)?(\d+)?(?:#p(\d+))?"/g;
while (match = regexp.exec(postObj.com)) {
if (QuoteYou.db.get({
boardID: match[1] || boardID,
@ -20158,10 +20158,10 @@ ThreadWatcher = (function() {
excerpt = data.excerpt;
excerpt || (excerpt = "/" + boardID + "/ - No." + threadID);
link = $.el('a', {
href: "/" + (Site.urls.thread({
href: Site.urls.thread({
boardID: boardID,
threadID: threadID
})),
}),
title: excerpt,
className: 'watcher-link'
});
@ -22527,7 +22527,7 @@ QR = (function() {
extra.form.append('g-recaptcha-response', response.response);
}
}
QR.req = $.ajax("https://sys.4chan.org/" + g.BOARD + "/post", options, extra);
QR.req = $.ajax("https://sys." + (location.hostname.split('.')[1]) + ".org/" + g.BOARD + "/post", options, extra);
return QR.req.progress = '...';
};
if (typeof captcha === 'function') {

Binary file not shown.

View File

@ -3,7 +3,7 @@
"4chan-x@4chan-x.net": {
"updates": [
{
"version": "1.14.4.5",
"version": "1.14.4.6",
"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.4.5' />
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.14.4.6' />
</app>
</gupdate>

View File

@ -3,7 +3,7 @@
"4chan-x@4chan-x.net": {
"updates": [
{
"version": "1.14.4.5",
"version": "1.14.4.6",
"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.4.5' />
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.14.4.6' />
</app>
</gupdate>

View File

@ -1,4 +1,4 @@
{
"version": "1.14.4.5",
"date": "2018-11-23T22:52:15.116Z"
"version": "1.14.4.6",
"date": "2018-11-25T07:58:42.512Z"
}